Re: Header() variables

From: Date: Thu, 10 Apr 2003 11:38:55 +0000
Subject: Re: Header() variables
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-143315@lists.php.net to get a copy of this message
You could allways settle for base64_encode(), having the advantage of not showing the parameters directly in the url... disadvantage is that it lengthens the url. Ernest E Vogelsinger wrote:
At 11:24 10.04.2003, Alex Ciurea said: --------------------[snip]--------------------
Thx alot, now I've fixed the problem: header("Location: target_file.php?myVar=".serialize($myVar));
--------------------[snip]-------------------- You should also use urlencode() for URL values: header("Location: target_file.php?myVar=".urlencode(serialize($myVar)));


« previous php.general (#143315) next »