RE: [PHP] $_GET and multiple spaces.
| From: | Churchill, Craig | Date: | Mon, 14 Jan 2008 21:21:44 +0000 |
| Subject: | RE: [PHP] $_GET and multiple spaces. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267246@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Andrés Robinet [mailto:agrobinet@bestplace.biz]
> Sent: Tuesday, 15 January 2008 6:33 AM
> To: php-general@lists.php.net
> Subject: RE: [PHP] $_GET and multiple spaces.
> Like this?
>
> $url =
> htmlspecialchars('whatever.php?'.urlencode($name).'='.urlencode($value));
>
> Regards,
>
> Rob
>
I'm now using urlencode on the values and htmlspecialchars on the entire url
and it's working nicely.
Thanks to everyone who helped.
Craig.
museumvictoria.com.au
This e-mail is solely for the named addressee and may be confidential.You should only read,
disclose, transmit, copy, distribute, act in relianceon or commercialise the contents if you are
authorised to do so. If you are not the intended recipient of this e-mail, please notify
postmaster@museum.vic.gov.au by e-mail immediately, or notify the sender and then destroy any copy
of this message. Views expressed in this e-mailare those of the individual sender, except where
specifically stated to be those of an officer of Museum Victoria. Museum Victoria does not
represent,warrant or guarantee that the integrity of this communication has been maintained nor that
it is free from errors, virus or interference.