Re: cookies

From: Date: Thu, 17 Aug 2000 09:02:52 +0000
Subject: Re: cookies
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-12183@lists.php.net to get a copy of this message
I'm referring to the way it says: "If you wish to assign multiple values to a single cookie, just add [] to the cookie name. For more details see the setcookie() function." which seems to directly answer your question of: "i'm wondering how its possible to put multiple values into one" You then went on to say that you'd like to store firstname and lastname in a cookie. If you click the hyperlink in the page I posted the URL for, true to it's word, it takes you to http://www.php.net/manual/function.setcookie.php which contains an example of how to do exactly what you ask. It's the third one under 'Example 1' jason > yes i did......i read it all.... > > are you referring to the array function thingy :-) > > ~kurth > > > >Did you read the manual under the cookie section? It appears to directly > >answer your question. > >http://www.php.net/manual/features.cookies.php > > > > > >jason > > > > > > > > > i'm wondering how its possible to put multiple values into one > > > cookie? like i want to store $firstname and $lastname. i tried putting > > > special chars in between them and all i get a parse errors.....i know how > > > to split the values apart once i get them in the cookie...but i need to > >get > > > the multiple values in one cookie first...any ideas? > > > > > > ~kurth > > Kurth Bemis - Network/Systems Administrator, USAExpress.net/Ozone Computer > > kurth@usaexpress.net > http://www.usaexpress.net/kurth > ICQ - 6624050 > Call Sign - N1TYW > PGP key available - http://www.usaexpress.net/kurth/pgp > > Fight Weak Encryption! Donate your wasted CPU cycles to Distributed.net > (http://www.distributed.net) > > >

« previous php.general (#12183) next »