Pulling information from cookies.
Posted: Tue Nov 19, 2002 6:03 am
Hey all.
So here's the dealio -
I have two cookies that are set when one logs in to my page:
IamJim_user and IamJim_pass
This is the code I *tried* using to pull the information:
I thought this would check for the first cookie, then find it and check for the second cookie, find it and then set those variables equal to the values of the cookies.
Later on in the script, I have
And I get:
Welcome "! (for an example, visit http://www.empiregaming.net/iamjim and log in at the bottom of the script as aaa, pass: aaa.)
Any ideas?
So here's the dealio -
I have two cookies that are set when one logs in to my page:
IamJim_user and IamJim_pass
This is the code I *tried* using to pull the information:
Code: Select all
<?
if($_COOKIEї'IamJim_user']) {
if($_COOKIEї'IamJim_pass']) {
$user_name = $_COOKIEї'IamJim_user'];
$password = $_COOKIEї'IamJim_pass'];
}
}
?>Later on in the script, I have
Code: Select all
<?
echo "Welcome '$user_name'!";
?>Welcome "! (for an example, visit http://www.empiregaming.net/iamjim and log in at the bottom of the script as aaa, pass: aaa.)
Any ideas?