Re; [UPHPU] Posting a form

Ray Hunter bigdog at
Thu Feb 24 13:00:29 MST 2005

On Thu, 2005-02-24 at 12:48 -0700, Benjamin Schmuhl wrote:
> I have forms that do *not* submit when I hit enter, as I do not have a
> submit button.  I am using FireFox 1.0 (Windows and Linux) and IE 6.0.
> This is a problem we want to overcome.  I don't want to use a submit
> button because I want to use javascript to validate the form before it
> can be submitted.  Is there any way to have enter validate the form?  Do
> I have to put listener events on each form element?

check out the onsubmit attribute of the form tag. There you can add the
validation code as a javascript function.


More information about the UPHPU mailing list