Problem validating form NEED HELP
Okay --
I have a form that the user inputs answers to questions for a contest. I
wrote a javascript to validate it -- make sure that the fields are not blank
and the answers are correct -- if the answers are not correct, i do not want
it to run the cgi to send the email.
The javascript seems to run fine, it properly validates the form -- if fields
are blank or answers are wrong -- the only problem is.. whether the form
is valid or not -- the cgi still runs and sends mail -- how do i stop this
fromhappening??
Any help would be great
Steve
Re: Problem validating form NEED HELP
Return false from your validation routine when validation fails.
"Steve" <DJMeee@aol.com> wrote in message news:3c348507$1@147.208.176.211...
>
> Okay --
>
> I have a form that the user inputs answers to questions for a contest. I
> wrote a javascript to validate it -- make sure that the fields are not
blank
> and the answers are correct -- if the answers are not correct, i do not
want
> it to run the cgi to send the email.
>
> The javascript seems to run fine, it properly validates the form -- if
fields
> are blank or answers are wrong -- the only problem is.. whether the form
> is valid or not -- the cgi still runs and sends mail -- how do i stop this
> fromhappening??
>
> Any help would be great
>
> Steve