array in cookie . . .

From: Date: Mon, 26 Mar 2001 03:15:28 +0000
Subject: array in cookie . . .
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45559@lists.php.net to get a copy of this message
Im trying to get an array saved in a cookie, I have this snippet so far.. <? if (newuser == yes) { $user_reg[0]= $username; $user_reg[1]= $password; $user_reg[2]= $fullname; $user_reg[3]= $email; $user_reg[4]= $age; setcookie ("user_reg" , $user_reg, time() + 360 * 86400); $done_message = "thankyou, $user_reg[0]."; }else{ $done_message = $sign_form; } ?> $username and the others vars are coming from a form submitted. did I write this ok? is there a limit to how much I can save in the array ? Thanx amd _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

« previous php.general (#45559) next »