Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $username = $_POST["username"];
- $password=$_POST["password"];
- if ($username=="John" && $password=="pass"){
- $_SESSION['login']= $username;
- header("location: main1.php");
- }
- else{
- header("location: login.html");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement