Hi,
Thanks for for your reply.
The 2 functions already had different names... one named Blank_TextField_Validator() and the other named validate(). The first, just by reason of its name, is obvious while the second checks another text field in the same form for proper format.
But when I try to call the functions with 2 'onSubmit' entries, such as the following, only the first one will work.
Code:
<form METHOD=POST ACTION="contact_form.php" name="contact" onSubmit="return Blank_TextField_Validator()" onSubmit="return validate()">
I tried various ways of concatenating the 2 onSubmit calls but nothing that I tried worked. So I'm not sure if concatenation is not allowed or I'm not presenting the proper syntax.
I am toying with the idea of having one function call the other or maybe nesting the 2 functions but since I have very little experience with javascript, I've yet to be successful.
I'll keep plugging away at it but any and all ideas are sincerely appreciated.
--Yizit
|