Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html>
  4. <body>
  5.  
  6. <form action="display-login.php" method="post" target="_blank">
  7. Username: <input type="text" name="uname"><br>
  8. Password: <input type="text" name="pword"><br>
  9. <input type="submit" value="Submit">
  10. </form>
  11.  
  12. <p>Click on the submit button, and the input will be sent to a page on the server called "display-login.php".</p>
  13.  
  14. </body>
  15. </html>
  16.  
  17.  
  18.  
  19. c/p from teacher
  20. ---------------
  21. 1 <!DOCTYPE html>
  22. 2 <html>
  23. 3 <head>
  24. 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  25. 5 <title>Variable Test</title>
  26. 6 </head>
  27. 7
  28. 8 <body>
  29. 9
  30. 10 <?php
  31. 11
  32. 12 // Define $username and $password
  33. 13 $username=$_POST['username'];
  34. 14 $password=$_POST['password'];
  35. 15
  36. 16 echo "The username entered was: <b>" .$username . "</b></br>
  37. 17 The password entered was: <b>" .$password ."</b>";
  38. 18 ?>
  39. 19
  40. 20 </body>
  41. 21 </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement