PDA

View Full Version : multi part form validation



numbenator
03 Dec 2005, 10:33 AM
HI ,
I have a form that clients can enter details on and select a image for upload. My form works great. When user submit, a new asp page is called that proceses my form using a fileUploadObject.

My problem is that I wish to validate the user entries before the form is submitted so as if the user fails to enter say... his name , I can remain on page so as not to loose the data that was actually entered correctly.

I figured (i think lol) some javascript on each input field or a script that runs before form submission would enable me to validate.

I know absoluelty no javascript so any help would be appreciated.

steve

dingo
04 Dec 2005, 09:47 AM
You'd need javascript form validation, as described here:
http://www.elated.com/tutorials/programming/javascript/form_validation/