Mark Stosberg wrote:

On 2004-09-10, Michael Peters <[EMAIL PROTECTED]> wrote:

Even better than my idea. Especially since if your going to use path_info do you really care about some parameters in the query string?


In some cases, Yes. Sometimes it's nice to have a form that can submit
to different run modes, based on the submit button. A single PATH_INFO
can't handle this cleanly. Instead, I use extremely simple JavaScript to set "rm" explicitly, and submit no PATH_INFO.


        Mark


If you're using javascript, you could always set the form's action with this.form.action='./otherpath'


An unrelated "hates" is that in mozilla I can use <button>'s to specify the runmode - no javascript required:


        <button type=submit name=rm value=mode1>mode 1</button>
        <button type=submit name=rm value=mode2>mode 2</button>

But of course silly IE won't do that: it treats this as an <input type=submit> and sends the text. And MS bloody invented the <button> tag!

Rhesa

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[EMAIL PROTECTED]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to