RE: [PHP] Question: urldecode
| From: | Ford, Mike | Date: | Thu, 09 Dec 2004 13:09:07 +0000 |
| Subject: | RE: [PHP] Question: urldecode | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-203812@lists.php.net to get a copy of this message | ||
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
> -----Original Message-----
> From: Stuart Felenstein [mailto:stuart4m@yahoo.com]
> Sent: 09 December 2004 11:52
>
> In my search page, the url returned comes back with
> the ..err I forget what it's called, but query string
> looks like this: %5B%5D=3. I think the %5B and 5D
> should be [].
Are you seeing the URL-encoded version *only* in your browser's
Address/Location bar? If so, that's perfectly normal and nothing to worry
about -- it should be automatically decoded by the Web server before being
passed to PHP.
If you're seeing the encoded version actually in your PHP script, that
sounds like a major problem, possibly indicating a missing urldecode() or
extraneous urlencode() -- in which case, please post a more detailed
analysis of your problem, examples of the unwanted behaviour, and the
relevant portions of script.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services, JG125, James
Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS,
LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211