On Thu, 28 Mar 2002, Rodrigo Peres wrote:
> if(isset($submit)) {
>     $x = addslashes($HTTP_POST_VARS);
>     $y = serialize($x);
>     setcookie("posted",$y)
> }

1) You probably should call serialize on the array to turn it into a
string before trying any string transformations like addslashes. If you 
don't understand what is going on, help yourself out by printing out the 
values every step of the way.

2) You don't need to use addslashes anyway because it has nothing to do
with cookies; they are not quoted.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to