Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <body>
- <form action="display-login.php" method="post" target="_blank">
- Username: <input type="text" name="uname"><br>
- Password: <input type="text" name="pword"><br>
- <input type="submit" value="Submit">
- </form>
- <p>Click on the submit button, and the input will be sent to a page on the server called "display-login.php".</p>
- </body>
- </html>
- c/p from teacher
- ---------------
- 1 <!DOCTYPE html>
- 2 <html>
- 3 <head>
- 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- 5 <title>Variable Test</title>
- 6 </head>
- 7
- 8 <body>
- 9
- 10 <?php
- 11
- 12 // Define $username and $password
- 13 $username=$_POST['username'];
- 14 $password=$_POST['password'];
- 15
- 16 echo "The username entered was: <b>" .$username . "</b></br>
- 17 The password entered was: <b>" .$password ."</b>";
- 18 ?>
- 19
- 20 </body>
- 21 </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement