Hi there:
I am pasing variables with session variables through pages, in the fist page (Homepage) the user input his email address and I post it and collect it in a session variable; in a 2nd page I retake the session variable value and keep it in a variable through which I perform a query and the results of such query are also kept in a session variable; This method works in my testing server but not on X10hosting server, could anyone help me wit this? Thanks alot.
Homepage
$loginUsername=$_POST['Username'];
$_SESSION['GuestEMAIL']=$loginUsername;
2nd page
$loginUsername=$_SESSION['GuestEMAIL'];
$result = mysql_query("SELECT * FROM guests, projects WHERE GEMAIL='$loginUsername' AND GPJID=PID");
while($row = @mysql_fetch_array($result))
{
$GID=$row['GID'];
$_SESSION['GuestID']=$GID;
$PID=$row['PID'];
$_SESSION['ProjectID']=$PID;
}
echo $_SESSION['GuestID'];
...
I am pasing variables with session variables through pages, in the fist page (Homepage) the user input his email address and I post it and collect it in a session variable; in a 2nd page I retake the session variable value and keep it in a variable through which I perform a query and the results of such query are also kept in a session variable; This method works in my testing server but not on X10hosting server, could anyone help me wit this? Thanks alot.
Homepage
$loginUsername=$_POST['Username'];
$_SESSION['GuestEMAIL']=$loginUsername;
2nd page
$loginUsername=$_SESSION['GuestEMAIL'];
$result = mysql_query("SELECT * FROM guests, projects WHERE GEMAIL='$loginUsername' AND GPJID=PID");
while($row = @mysql_fetch_array($result))
{
$GID=$row['GID'];
$_SESSION['GuestID']=$GID;
$PID=$row['PID'];
$_SESSION['ProjectID']=$PID;
}
echo $_SESSION['GuestID'];
...