You are here: Re: how do I append a variable to a url that already contains variables? « HTML « IT news, forums, messages
Re: how do I append a variable to a url that already contains variables?

Posted by Jukka K. Korpela on 12/19/06 12:19

Scripsit David Dorward:

> Jukka K. Korpela wrote:
>> But the correct syntax is
>> <a href="xxx?page=2&amp;chapter=5>
>> The _URL_ here is of course xxx?page=2&chapter=5.
>
> You can usually use ";" instead of "&" though, which nicely removes
> the need to convert to entities.

I can use a character of my choice, such as ";" or "X", if I am in control
of the server-side script and if I do not need to care about what browsers
do when constructing a form data set. This means, more or less, that
_usually_ I cannot choose the separator between fields but must use "&",
which shall be encoded in HTML as &amp; or using a character reference.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

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

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