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]",
* 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
> 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'),
> 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
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
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
6 matches
Mail list logo