Quote:
<?php
$usernames = array("user1", "user2", "user3", "superman");
$passwords = array("pass1", "pass2", "password3", "supermans password");
$page = "testlogin.php";
for($i=0;$i<count($usernames);$i++){
$logindata[$usernames[$i]]=$passwords[$i];
}
if($logindata[$_POST['username']]==$_POST[be 'password']){ what is this "be"?
session_start();
$_SESSION[username]=$_POST['username']; Should
header('Location: '.$page); Should be header ('Location $page'); |
First 14 just incase heres the rest
Quote:
exit;
}else{
header('Location: login.php?wrong=1');
exit;
}
?>
|