Re: '#' character breaking the URL string
| From: | Joseph Szobody | Date: | Wed, 28 Aug 2002 00:01:38 +0000 |
| Subject: | Re: '#' character breaking the URL string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114301@lists.php.net to get a copy of this message | ||
Thanks. That's what I needed.
Joseph
"Richard Lynch" <rich@phpbootcamp.com> wrote in message news:php.general-114295@news.php.net...
> >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
>