Hiya guys,
How can I write a cookie with multiple variables? something to do with explode or serialise but I don't get it, can someone show me an example of setting one with the following vars;
$Name $Sex $Age $Email
Please? And just the general principle of it for future reference.
Cheers in advance....
I am not sure how to do it with multiple variables for one cookie, but the way I do it is by making a new cookie for each variable.
You can create an array of the values you want to save in the cookie.
Then
$cookiestuff=compact($thatarray);
Save $cookiestuff as your cookie content
Use
$thatarray = extract($_COOKIE) to reconstitute the array of cookie variables.