Session Variable
Please help me from tearing all my hair out. I just cannot figure out what's wrong here. I've attached the page in question but what is supposed to happen is this.
The session is set after a log in.
The users recordset is defined using the sessionID (UserID)
I've set up a little test and the UserID from the recordset echo's as it should but the other fields do not. They are just not recognised.
<p>UserID from recordset: <?php echo $row_rsUser['UserID']; ?></p>
<p>See if UserID is set: <?php if (isset($_POST['UserID'])) {
echo $_POST['UserID'];
} else {
echo 'UserID not set';
} ?></p>
<p>This is the SessionID: <?php echo $_SESSION['UserID']; ?></p>
"UserID from recordset:" works but the others do not.
I know it must be something simple but it's got me baffled. Any pointers in the right direction appreciated.