Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^6: Review: CGI::Prototype

by stu42j (Sexton)
on Jan 18, 2005 at 18:46 UTC ( [id://423138]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://423138]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found