Advertisement
Guest User

Untitled

a guest
Apr 5th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. <?php // formtest2.php
  2. if (isset($_POST['name2'])) $name = $_POST['name2'];
  3. else $name = "(Not entered)";
  4. echo <<<_END
  5. <html>
  6. <head>
  7. <title>Form Test</title>
  8. </head>
  9. <body>
  10. Your name is: $name<br>
  11. <form method="post" action="formtest2.php">
  12. What is your name?
  13. <input type="text" name="name2">
  14. <input type="submit">
  15. </form>
  16. </body>
  17. </html>
  18. _END;
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement