I have a page with multiple forms using different .php pages to process and update my db. On the first page my session variable is stored on the second I’m trying to recall the session variable to use in my where statement.
$sql="UPDATE Persons
SET newsletter='$_POST[newsletter]',howiPad='$_POST[howiPad]',invite='$_POST[invite]', messageforfriends='$_POST[messageforfriends]', possible_points='$_POST[possible_points]'
WHERE `usremail` = '$_SESSION['usremail']'";
1 Answer