Advertisement
Guest User

Untitled

a guest
Jul 9th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.51 KB | None | 0 0
  1. <html>
  2. <head>
  3. </head>
  4.  
  5. <body>
  6.  
  7. <form method="POST" action="#">
  8. Username: <input type="text" name="name"><br/>
  9. Password: <input type="password" name="pass"><br/>
  10. <input type="submit" name="submit"/>
  11. </form>
  12.  
  13.  
  14. <!--
  15.  
  16. <?php
  17.  
  18. if(isset($_POST['submit']) )
  19. {
  20.   echo "\n\n\n\n";
  21.  
  22.   echo "Username: $_POST['name']\n";
  23.   echo "Password: $_POST['pass']\n";
  24.  
  25.   echo "FORM SUBMITTED SUCCESSFULLY!\n";
  26. }
  27.  
  28. else
  29. {
  30.   echo "\n\n\n\nFORM SUBMISSION UNSUCCESSFUL\n";
  31. }
  32.  
  33. ?>
  34.  
  35. -->
  36.  
  37.  
  38. </body>
  39. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement