Re: Header() variables
| From: | Ernest E Vogelsinger | Date: | Thu, 10 Apr 2003 10:57:28 +0000 |
| Subject: | Re: Header() variables | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143309@lists.php.net to get a copy of this message | ||
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)));
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/