Hi I am having problems with session. it doesn't seem to pass the content to the variables i have assigned them. I have used list to extract the data... pls help me... here are the codes.
<?
require_once("./inc_conf.php");
require_once("./inc_dbfunctions.php");
session_start();
$name = strtolower($name);
$tbSource = $tbLogin;
$record = "name,id,password,telephone,address,email,referid,idnum";
$condition = "where id='$name'";
list($name,$id,$password,$telephone,$address,$email,$referid,$idnum) = getSingleResultSet($DBHOST,$DBUSER,$DBPASS,$DB,$tbSource,$record,$condition);
if ($name == "NotOK") {
header("Location: index.php?LogError=1");
} else {
$verified_user = array($name,$id,$password,$telephone,$address,$email,$referid,$idnum);
session_register("verified_user");
header("Location: main.php");
}
?>