Re: [PHP] rawurldecode problems

2005-05-31 Thread Richard Lynch
On Fri, May 27, 2005 1:26 pm, Jeremy Reynolds said: > I'm using the rawurldecode() function to try and polish up some data > I get from a parameter > > I use the function below and this is what it does. It's as-if it > only unencodes the last part. Anybody have ideas on what I'm doing > wrong? >

Re: [PHP] rawurldecode

2005-03-29 Thread Aaron Todd
I got it. After you said I shouldn't need it I started playing around and found that you were right...I didnt need it for spaces and other punctuation. But I was then having a problem with amperstands. It was dropping everything after an amperstand off. I ended up doing a rawurldecode of $_

Re: [PHP] rawurldecode

2005-03-29 Thread Marek Kilimajer
Aaron Todd wrote: 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 You should write: echo 'here'; Then $_GET['variable'] will be equal to 'this is my image.jpg'. When I do a echo $_GET['variable']; it only writes the

Re: [PHP] rawurldecode

2005-03-29 Thread Aaron Todd
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 functi

Re: [PHP] rawurldecode

2005-03-28 Thread tg-php
Could you use parse_url() and just take the [query] section of it, then maybe do an explode on "&" to get the different parts of it? -TG = = = Original message = = = I am trying to use the rawurldecode() function to decode a variable that is begin passed from a different page through the url.

Re: [PHP] rawurldecode

2005-03-28 Thread Marek Kilimajer
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 vari