Re: [PHP] How to use multiple cookie statements

2004-07-13 Thread Ronald \"The Newbie\" Allen
Can you use my above values to show me what you are talking about? "Matt M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > setcookie("cookie[name]","$_POST['name']", time()+86400) > > setcookie ("cookie[email]","$_POST['email']", time()+86400) > > setcookie ("cookie[bgcolor]",

Re: [PHP] How to use multiple cookie statements

2004-07-12 Thread Curt Zirzow
* Thus wrote Jason Barnett: > Or if you feel lazy... then you can use serialize / unserialize. I'll be even lazier... setcookie('foo[bar]', 'is ok'); setcookie('foo[qaz]', 'is better'); // after cookie is set. $myFoo = $_COOKIE['foo']; print_r($myFoo); Curt -- First, let me assure you that t

Re: [PHP] How to use multiple cookie statements

2004-07-12 Thread Michal Migurski
> I have to use cookies, since I am taking a class and it dictates that we > use cookies, but I can't email my instructor since she never responds. > So how do I use a cookie to record multiple values? Help would be > appreciative.a A few options: use multiple cookies, e.g. setcookie('cookie_a'),

Re: [PHP] How to use multiple cookie statements

2004-07-12 Thread Matt M.
> setcookie("cookie[name]","$_POST['name']", time()+86400) > setcookie ("cookie[email]","$_POST['email']", time()+86400) > setcookie ("cookie[bgcolor]","$_POST['bgcolor']", time()+86400) > setcookie ("cookie[tcolor]", "$_POST['tcolor']", time()+86400) > > ?> you could try this: setcookie ('val

Re: [PHP] How to use multiple cookie statements

2004-07-12 Thread Jason Barnett
Or if you feel lazy... then you can use serialize / unserialize. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to use multiple cookie statements

2004-07-12 Thread Jordi Canals
Ronald "The Newbie" Allen wrote: aHere is my code... ?> I have to use cookies, since I am taking a class and it dictates that we use cookies, but I can't email my instructor since she never responds. So how do I use a cookie to record multiple values? Help would be appreciative.a As the standard