Every time i try to pass variables in the session data to the next form nothing gets transferred. The session gets created but the variables are not created and no values are assigned to them. Any help would be appreciated
PHP Code:if(!$db){
trigger_error("Could not perform the specified query. Please contact an admin!",E_USER_ERROR);
}else{
$sql = "SELECT * FROM users WHERE UserName='$usernme'";
$result= mysql_query($sql);
while ($myrow = mysql_fetch_array($result)) {
if ($myrow['UserName']===$usernme && $myrow['Password']===$password){
if($myrow['Verified']==="1"){
session_start();
session_register('user','pass');
$user=$myrow["UserName"];
$pass=$myrow["Password"];
header("Location: /igl/user.php?$PHPSESSID");
}else{
$error="Sorry, Your account has not yet been activated!";
}
}else{
$error="Sorry, Username or Password invalid!";
}
}
}




Reply With Quote