Advertisement
Guest User

Untitled

a guest
Aug 9th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. index.php:
  2. <h1>Login</h1>
  3. <form id='login' action='loginscript.php' method='post'>
  4. <div>Username:</div>
  5. <div><input type='text' name='username'/></div>
  6. <div>Password:</div>
  7. <div><input type='password' name='password'/></div>
  8. <div><input type='submit' name='submit' value='Login'/></div>
  9. </form>
  10.  
  11. loginscript.php:
  12. $user = $_POST['username'];
  13. $pass = $_POST['password'];
  14.  
  15. echo "Logged in as $user/$pass"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement