Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. <form method="post">
  2. <p>Username: <input type="text" name="usr"></p>
  3. <p>Password: <input type="text" name="passwd"></p>
  4. <p><input type="submit" value="Login"></p>
  5. </form>
  6.  
  7. // After checking if the request is POST...
  8. if($_POST["usr"]=="myuser"&&$_POST["passwd"]=="mypassword") {
  9. // Set the cookie and go to admin page...
  10. } else {
  11. // Show login error...
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement