Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Setting value of session variables
- Connor T
January 8, 2006, 6:26 pm
rate this thread
I used to have code like this:
$itemCode["$basketCount"] = $id ;
where itemCode and basketCount were both session variables.
Now it seems i have to use _SESSION if register globals are turned off.
So how should
this code look?
This doesnt compile:
Re: Setting value of session variables
first you need on your site a session_start() as first code piece. Your
example is almost correct. Try this instead:
If basketcount is a variable, you can write it like this:
Hope this helps