Try pushing the variables into an array before sending to the session.
I never have problems with arrays in sessions.

"Sachin Keshavan" <[EMAIL PROTECTED]> wrote in message
> Hello,
> I want to add a set of values to the session variable $BOOKS. This is the
> code which I used.
> if($BOOKS=="")
> {
> #this seems to be the first book which the user has selected
> $BOOKS = $bookid; #this param comes from the URL
> }
> else
> {
> $BOOKS = $BOOKS+","+$bookid;
> }
> Here the 'if..' part gets executed, and because of that I cannot add
> of another book. I have initialised the session and added the registered
> value "BOOKS" in the previous page.
> Thanks in advance,
> Sachin.

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to