Re: '#' character breaking the URL string
| From: | Richard Lynch | Date: | Tue, 27 Aug 2002 22:38:55 +0000 |
| Subject: | Re: '#' character breaking the URL string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114295@lists.php.net to get a copy of this message | ||
>I have a 5-step (5 page) process in which users must answer various
>questions. Each page passes along the data to the next page, at the same
>time capturing the data from the previous page and passing that along too.
>
>To capture all the data submitted previously, I have the following code:
>
>$a = "?";
>$url = "";
>while(list($key, $value) = each($HTTP_POST_VARS))
>{
>$url .= "$a$key=" . htmlspecialchars(addslashes($value));
These should be http://php.net/URLEncode, not
htmlspecialchars(addslashes(..))
--
Like Music? http://l-i-e.com/artists.htm