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

Posted by M. Trausch on 11/17/05 16:22

meltedown wrote:
>
> clarificatin: # are allowed in urls, but only as part of an anchor
> identifyer.
>
>> Thats what urlencode() is for, and it works fine. The question is: why
>> doesn't %23 and everything after it make it to $_GET ?
>

That's because the browser treats %23 as #... e.g., you cannot use that
character, as it's local to the browser as a named-anchor. Use a
different character. The browser treats all URL escaped characters *as
the character it is*, so you can encode spaces and ~ and all sorts of
other things into the URL.

- Mike

--
Strip the obvious trash from the header to send e-mail.

 

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

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