Forums

ASP

This topic is locked

Form OnSubmit Question

Posted 31 Oct 2001 18:21:08
1
has voted
31 Oct 2001 18:21:08 Brad Harris posted:
I am using UDZone's ASPUpload extension to upload an image. I see that it uses an OnSubmit function within the form. I also want to do a form validation for required fields. This too uses an OnSubmit function. My question is .. can I have two OnSubmit functions in the same form .. and if so .. how exactly would I do it. When I put them in separately .. each works fine, but together my form validation doesnt work.

Any ideas, rants, raves, curses for my lack of knowledge ... would be greatly appreciated.

Thanks

Brad

Replies

Replied 15 Sep 2005 17:52:31
15 Sep 2005 17:52:31 andy bertaut replied:
I've have this problem myself. A way around it is to attach your form valiation to the onClick function of the submit button, and not the Submit function of the form. works a treat.
Replied 12 May 2006 23:57:41
12 May 2006 23:57:41 pete sutton replied:
Hi you could always use a simple js like this one its cool www.javascript-coder.com/html-form/javascript-form-validation.phtml
validates without putting it in the onsubmit

Reply to this topic