Some of my attempts to pass session information along as the user moves from page topage works correctly. And others fail for reasions I don't understand. All help appreciated.
Working code follows. The ipassed info is in the url as "?id=7" or other correct id number.
HTML Code:
href="/updatecontactscurrent_members.php ?id=<? echo $id; ?>">Update</a></font></td>
And the following code obtains the passed info correctly:
HTML Code:
$id=$_GET['id'];
The failing code is as follows: The passed info is in the url as "?UserID=<? echo $UserID;?>"
HTML Code:
<tr><td align left>
<a href="http://localhost/workinglogoutsession.php?UserID= <? echo $UserID;?>">Members Logout</a></td></tr>
And the following code obtains the passed info correctly but the info is wrong!
HTML Code:
$UserID=$_GET['UserID'];
Any ideas where I screwed up?
Frodocyber
|