From: <me...@st...> - 2003-03-25 15:53:38
|
>>>>> "Chris" == Chris Winters <ch...@cw...> writes: Chris> damien leri wrote: >> another plugin function i have an issue with is make_url(), which >> joins params with '&', rather than '&'. Why not avoid both by >> using Chris> ';' as the param delimiter? Chris> This is one of those issues that I was too lazy to research and went Chris> with what worked. Do GET parsing engines regard a lone '&' as an Chris> error? Do '&' and ';' work with everything? [Hmm. I have to repeat this on every mailing list I'm on, it seems.] A URI with CGI info generally looks like: http://some.host/cgi/scriptname?fred=flintstone&barney=rubble However, 99% of the time, you'll be putting that into an HTML page, where it has to be coded like: <FORM ACTION="http://some.host/cgi/scriptname?fred=flintstone&barney=rubble"> because "&" has to become "&" even in attributes. There are a *few* CGI processors that have adopted the "; is the same as &" recommendation, but at this point, you still shouldn't count on it. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <me...@st...> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! |