Haifa linux club:PHP lecture
Prev Next


HTML Forms


the form:
<?
//form.php file :
?>
<form action="recv.php" method="post">
    Name: <input type="text" name="username"><br>
    <input type="submit">
</form>

recv.php - the file that will recieve the data:
<?
if($username){
    echo 
"your name is $username !!! <br>";
} else { 
?>
<a href="form.php">please fill the form first !</a>
<? ?>



HOME