You are here: Re: how does one edit php.ini to allow multiple url parameter separators? « PHP Programming Language « IT news, forums, messages
Re: how does one edit php.ini to allow multiple url parameter separators?

Posted by Jan Pieter Kunst on 06/25/06 15:51

It seems there is some confusion between arg_separator.output and
arg_separator.input here.

"&" should be used for arg_separator.output, i.e. URL's generated by
PHP, so that those webpage that use those URL's are valid.

"&" or ";" should be used for arg_separator.input , i.e. incoming GET
requests. In that context the separator is just "&", not "&".

Note how clicking on an "&" separated URL:

<a href="http://example.com/script.php?var1=this&amp;var2=that">click</a>

Results in

http://example.com/script.php?var1=this&var2=that

In the location bar of your browser.

The browser translates the "&amp;" representation on the webpage of the
"&" character back to the actual "&" character for input purposes.

JP

--
Sorry, <devnull@cauce.org> is een "spam trap".
E-mail adres is <jpk"at"akamail.com>, waarbij "at" = @.

 

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

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