<? //form.php file : ?> <form action="recv.php" method="post"> Name: <input type="text" name="username"><br> <input type="submit"> </form>
<? if($username){ echo "your name is $username !!! <br>"; } else { ?> <a href="form.php">please fill the form first !</a> <? } ?>