PHILLYESL

'123456','username1' => 'password1','username2' => 'password2'); /* Check and assign submitted Username and Password to new variable */ $Username = isset($_POST['Username']) ? $_POST['Username'] : ''; $Password = isset($_POST['Password']) ? $_POST['Password'] : ''; /* Check Username and Password existence in defined array */ if (isset($logins[$Username]) && $logins[$Username] == $Password){ /* Success: Set session variables and redirect to Protected page */ $_SESSION['UserData']['Username']=$logins[$Username]; header("location:index.php"); exit; } else { /*Unsuccessful attempt: Set error message */ $msg="Invalid Login Details"; } } ?>
Click to set custom HTML
  • Home
  • SIGN UP!
  • lesson page
  • sign in
  • New Page
  • experiment
  • New Page
  • Login
  • Information
Proudly powered by Weebly
  • Home
  • SIGN UP!
  • lesson page
  • sign in
  • New Page
  • experiment
  • New Page
  • Login
  • Information