David Dorward <dorward@yahoo.com> wrote:
[color=blue][color=green]
>> What fixes, if any, are there. I really don't want to use input
>> type="submit" or input type="image".[/color]
>
> That's about your only choice. You can use different names if you
> want to reuse the same value - its more work to test on the server
> side, but about the only way to deal with MSIE.[/color]
There would _still_ be the problem that there is no definition of what
should happen when the user hits Enter in a text input field.
And browsers vary in their interpretations.
The really safe way is to have one input type="submit" and handle the
rest with other fields (other than any kind of submit fields). Then the
browser differences won't matter. This should at least the the first
alternative to be considered. You can add e.g. a set of radio buttons
for choosing the action to be carried out by the form handler, rather
than using different submit buttons for such a choice.
If this is regarded as impossible, you probably need to expect that a
browser will behave as if the _first_ button were used, when the form
is submitted by hitting Enter in a text input field. And how would you
handle that? You won't know whether the use accidentally hit Enter or
really used the first input button. So you might end up with adding a
dummy first button for that purpose. Rather artificial.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html