Guest User

Untitled

a guest
May 21st, 2015
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Hello</title>
  4. </head>
  5. <body>
  6. <div>
  7. <?php
  8. $username = htmlspecialchars($_POST['username']);
  9. if (!empty($username))
  10.     echo "<div><p>Hello, $username!</p></div>\n";
  11. ?>
  12. </div>
  13. <div>
  14. <form method="POST" action="/forms/hello2.php">
  15. Name: <input type="text" name="username"/>
  16. <input type="submit" value="Send">
  17. </form>
  18. </div>
  19. </body>
  20. </html>
Advertisement
Add Comment
Please, Sign In to add comment