Haifa linux club:PHP lecture
Prev Next


"All in one" Form


same in one file (PHP style):
<?
if($username){
    echo 
"your name is $username !!! <br>";
} else { 
?>
<form action="<?= $PHP_SELF ?>" method="post">
    Name: <input type="text" name="username"><br>
    <input type="submit">
</form>
<? ?>




HOME