View Full Version : Activating a CGI script ?

07-03-2002, 08:32 PM

Um, I have a form which has a submi button, when that button is pushed, a javascript is run which basically validates the form. What I want to know is how do I ativate the cgi script behind the form after the validation check has been completed.

Any ideas ?? :confused:

Thanks :thumbsup:

07-03-2002, 09:39 PM
there's a few ways. One way would be to change your submit button to a regular button

<input type=button onClick="dovalidation()">

Use the onClick to activate your validation routine. Then inside your validation routine if everything checks out you can use javascript to submit the form like so: