in reply to Re^5: Review: CGI::Prototype
in thread Review: CGI::Prototype

I always felt that HTML using the "value" param on submit buttons was a bad design choice, and I think this illustrates that problem well. This, of course, is HTML's problem, not C::A's.

Actually, it is Microsoft's problem. HTML has the buttom element which allows you to seperate the form value from the buttom display. IE6 messes it up, though. Otherwise, you could do something like:

<button type="submit" name="runmode" value="doform1">Send Form</button>

Replies are listed 'Best First'.
Re^7: Review: CGI::Prototype
by hardburn (Abbot) on Jan 18, 2005 at 19:00 UTC

    Wow, never even knew that worked.

    For those tuning in at home, I did some testing. I implemented a basic form with this:

    <button type="submit" name="runmode" value="1">Send</button>

    Firefox correctly sends this as "runmode=1", while IE sends "runmode=Send". Thanks to MS for ruining a fix to one of HTML's design flaws!

    "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.