Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Multiple submit buttons problem
August 18, 2006, 10:46 am
rate this thread
Re: Multiple submit buttons problem
Actually, when you use normal submit buttons, <input type="submit" ...>, you
can use _either_ different name="..." attributes _or_ different value="..."
attributes, or both, since it's the name=value string that gets sent.
However, there's a tricky problem if there is at least one text input field
in the form, as there is in most forms. If the user hits Enter in such a
field, browsers typically submit the form immediately. There are no rules
for what should happen then; browsers may act as if no submit button had
been used, or as if the first submit button had been clicked, and maybe in
some other way too.
There's no good solution to this, except the use of just one submit button.
In that case, you would have e.g. radio buttons for making the choice that
would otherwise be made by selecting which submit button is used.
Jukka K. Korpela ("Yucca")