You are here: Re: urlencode and $_GET « PHP Programming Language « IT news, forums, messages
Re: urlencode and $_GET

Posted by Oli Filth on 11/18/05 19:18

meltedown said the following on 18/11/2005 17:17:
> black francis wrote:
>
>> sorry, it`s 'one space.html' -> 'one%20space.html' not '+'.
>>
>> as u said, it's 'unsafe' to use spaces according to the rcf, therefore
>> the browser encodes them (isn`t that rfc compliant?)
>>
>> btw: the w3 validator isn't yelling anything by using a space in the
>> url (html 4.01 strict, xhtml 1.0 strict & transitional).
>> btw2: %23 gets treated as %23, not #.
>>
> http://reenie.org/test/test16.php?value=start%23end
> click on this url and the first line tells you the value of $_GET
> It says: $_GET is:Array ( [value] => start#end )
>
> So it looks to me like the %23 is treated as #.
>

Yes, but now try echoing $_SERVER["REQUEST_URI"].

It is PHP that translates the octet, not the browser.

--
Oli

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация