Click to See Complete Forum and Search --> : From Javascript validation to CGI


davew
02-20-2003, 10:03 AM
In Jon Perrys "Using JavaScript to control forms" part 1, you are taken to the point where the form is validated by a validate() function.

This is within the form coding itself.

I have done this and all works.

The data is validated.

Now I want to initiate the mailing of the information in the form back to base.

Do I have to put another FORM statement somewhere with a new onsubmit statement ?

Any thoughts


Dave

gil davis
02-20-2003, 10:24 AM
Do I have to put another FORM statement somewhere with a new onsubmit statement ?No, the validation script should prevent the submission only if form data is not valid. If the data is valid, the submission is supposed to continue normally.

If that is not what is happening, there must be something wrong with your implementation. Post a link to your code or attach it to your next post for more assistance.

davew
02-21-2003, 03:17 AM
Thanks Gil.

Overnight I have examined a Javascript reference and I can see what is going on, so will not trouble you further.

Many thanks for coming back to me.

Regards


Dave