Any alternative to &arg in URL?
I am working on a site using both POST and GET forms and I use URL args frequently in the target: action="subfolder/index_html?arg1=spam&arg2=eggs&. .." Using the '&' character in URLs is not legal HTML (4.0-strict). Does Zope recognize other arg separators besides '&'? I don't want to give up the way Zope parses and places the args into the namespace for me. Any thoughts would be much appreciated! John Hermes jhermes@infoglobe.com
At 05:18 PM 9/29/99 -0400, John Hermes wrote:
I am working on a site using both POST and GET forms and I use URL args frequently in the target:
action="subfolder/index_html?arg1=spam&arg2=eggs&. .."
Using the '&' character in URLs is not legal HTML (4.0-strict). Does Zope recognize other arg separators besides '&'? I don't want to give up the way Zope parses and places the args into the namespace for me.
It's only really necessary to include the query string in anchor tags. <a href="foo/bar?bot=shakey"> In forms use hidden fields to pass additional arguments. <form action="foo/bar"> <input type="hidden" name="bot" value="shakey"> Check out any decent HTML reference for more information on using forms. Good luck! -Amos
At 23:18 29/09/99 , John Hermes wrote:
I am working on a site using both POST and GET forms and I use URL args frequently in the target:
action="subfolder/index_html?arg1=spam&arg2=eggs&. .."
Using the '&' character in URLs is not legal HTML (4.0-strict). Does Zope recognize other arg separators besides '&'? I don't want to give up the way Zope parses and places the args into the namespace for me.
Any thoughts would be much appreciated!
& is indeed illegal in a URL, but the part after the ? is the query string, and there they _are_ legal, and HTML FORMS using METHOD=GET will always encode the form contents like that. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
participants (3)
-
Amos Latteier -
John Hermes -
Martijn Pieters