urlencode and urldecode
| From: | Chris W | Date: | Sat, 17 May 2008 21:23:43 +0000 |
| Subject: | urlencode and urldecode | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-274477@lists.php.net to get a copy of this message | ||
Whenever you build a query string you need to us the urlencode to encode any characters that may be in there that aren't legal for a URL. On the server I am using now, when you access values using $_GET['xyz'], it does the urldecode for you. I'm not positive, but I am pretty sure, that at one time on a server I used in the past, that I had to manually call urldecode to decode GET vars. Is there a setting to change this or is it something that changed in php in the last few years?
--
Chris W
KE5GIX
"Protect your digital freedom and privacy, eliminate DRM,
learn more at http://www.defectivebydesign.org/what_is_drm"
Ham Radio Repeater Database.
http://hrrdb.com