Reply to Re: urlencode and $_GET

Your name:

Reply:


Posted by meltedown on 11/02/53 11:32

Oli Filth wrote:
> 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.
>
OKIE DOKIE.
I added the output from $_SERVER["REQUEST_URI"]
to http://reenie.org/test/test16.php?value=start%23end
Just for the hell of it.
I guess the browser didn't change it after all.

[Back to original 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

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