Hi,
Before I start…yes, I know there are scripts that can do both things. But I prefer to use two becuase…the scripts are easy to understand.
With that out of the way…
I have a form…that is controlled by two scripts
1) First script verifies that all required fields are filled in.
2) Second script ensures the e-mail entered is of the correct format.
Now the trouble I’m having is that in order to activate both scripts, I’m required to add a “onSubmit return…” code to the form. Once the form is submitted…the scripts activate and check to see if all is okay.
<form method=POST action=”
However, if i fill in all the fields that need to be filled in, leave the e-mail address field blank and then click submit…a notice should come up saying that the e-mail is inccorect – so the form cannot be submitted.
BUT…this does not happen…the form is submitted.
In summary…the e-mail script is not activated when the conditions for the other script are met (it does work the other way though).
I am guessing this has to do with the…onSubmit=”return checkEmail(this), checkrequired(this)”…coding.
Is it not possible to have two scripts checked at the sametime?
One final thing…both scripts do work…I’ve tested both individually. Just not together.
Sorry for the long explanation..I hope I havn’t confused you.
Thanks for any help.
Riz