Advertisement
Guest User

Untitled

a guest
Mar 19th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. <?php
  2. session_start();
  3. $username = $_POST["username"];
  4. $password=$_POST["password"];
  5. if ($username=="John" && $password=="pass"){
  6. $_SESSION['login']= $username;
  7. header("location: main1.php");
  8. }
  9. else{
  10. header("location: login.html");
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement