Re: rawurldecode

From: Date: Tue, 29 Mar 2005 12:50:42 +0000
Subject: Re: rawurldecode
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-211777@lists.php.net to get a copy of this message
All I am doing is adding a file name as a variable in the URL.....http://www.mysite.com/mypage.php?variable=this is my image.jpg When I do a echo $_GET['variable']; it only writes the first word. Is there some setting that might be turned off in the php.ini file that would disable this functionality? Thanks "Marek Kilimajer" <lists@kilimajer.net> wrote in message news:42487D36.2030802@kilimajer.net... > Aaron Todd wrote: >> I am trying to use the rawurldecode() function to decode a variable that >> is begin passed from a different page through the url. The PHP manual >> doesnt say much for this function, but it does have quite a bit on the >> urldecode() function which says using urldecode on a $_GET variable wont >> produce the desired results. Is there another way to decode a url >> variable? Or maybe a better way to get a variable from one page to >> another so I can use it. The variable may contain all types of >> characters, but mainly a space(%20) is the biggest problem. >> >> If anyone has some kind of workaround for this please let me know. > > You should not need it, %20 is decoded to space and as such is already in > $_GET variable. If it's still encoded then you encoded it where it was not > necessary.

« previous php.general (#211777) next »