'Twas brillig, and Colin Guthrie at 03/02/09 13:46 did gyre and gimble:
'Twas brillig, and Tim Fountain at 03/02/09 10:00 did gyre and gimble:
There can be good reason to include the name attribute on submits.
E.g. your form might contain two submit buttons ('Approve' and
'Reject'), and you use the submitted name in order to determine which
was pressed.
Personally, I don't like that approach as it use UI/i10n elements to
determine application logic.
'Approve' and 'Reject' would have to be compared to their i10n versions
in a multilingual app and it just doesn't feel right to do that. Perhaps
I'm alone with this opinion tho' :)
Incidentally, while the above is my opinion, I wasn't originally
suggesting all submit elements do not have a name= field... just that it
could be made optional.
But as Til suggested I'll see if I can roll my own :)
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]