Re: Suppress <return> for form submission?



On Apr 4, 2:40 pm, The Natural Philosopher <a...@xxx> wrote:
Michael Fesser wrote:
.oO(the...@xxxxxxx )

I have a form for which I'd like all submissions to happen through the
submit buttons provided. But if the user enters a <return> while in any
text box, the form gets submitted, and it gets submitted as if the
first submit button defined for the form had been pressed. Can I
insure that pressing <return> will not submit the form?

Not really.

You have to validate your form data on the server anyway. If it's
incomplete, show the form again. Additionally you can't rely on a
particular submit button being triggered with [enter]. It's completely
up to the browser what to do with forms that have multiple submit
buttons.

Micha

What happens if there is no submit button? just a javascript driven
clickable object to do the submit bit..?

Awesome -- now I need to have Javascript enabled just to submit a
form. That's almost as bad as links that require it.
.



Relevant Pages

  • Re: Suppress for form submission?
    ... You have to validate your form data on the server anyway. ... incomplete, show the form again. ... up to the browser what to do with forms that have multiple submit ...
    (comp.lang.php)
  • Re: Suppress for form submission?
    ... ZeldorBlat wrote: ... up to the browser what to do with forms that have multiple submit ... clickable object to do the submit bit..? ...
    (comp.lang.php)
  • Re: Chrome processes vs. threads
    ... But unless you did something like that, then running multiple ... copies of the browser would cause the browser to get its knickers ... the `history' file with different ideas over what should be in it, ... Because of the tangled prefs problem. ...
    (uk.comp.sys.mac)
  • Re: Chrome processes vs. threads
    ... wouldn't get that with multiple applications, and even if you could, ... the browser would cause the browser to get its knickers in a twist. ... Because of the tangled prefs problem. ...
    (uk.comp.sys.mac)
  • Re: Disabling multiple instances of Internet Explorer
    ... Paul T. ... average) to the Program Memory In Use every time the IE browser is opened ... If there is a leak, make sure that you've applied all of the latest QFEs ... crashing the system after multiple IE sessions. ...
    (microsoft.public.windowsce.embedded)