skyjockie
10-12-2005, 05:53 PM
Hi,
how do I execute 2 scripts with 1 submit button??
for example I have 2 separate scripts, one for checking that the required fields of a form is entered and another for making sure an important field within your form is filled out correctly.
Both scripts require me to enter this
onSubmit="return formCheck(this)"
onSubmit= "return verify(this.password1, this.password2)"
how do I combine these two together? I have tried these syntax
<form name="suppliersregistrationform" onSubmit="return (formCheck(this),verify(this.password1, this.password2))" >
<form name="suppliersregistrationform" onSubmit="return (formCheck(this)" onSubmit= "return verify(this.password1, this.password2)">
But none of these syntax worked... pls advise.
I would really appreciate any help on this.. thank you very much.
how do I execute 2 scripts with 1 submit button??
for example I have 2 separate scripts, one for checking that the required fields of a form is entered and another for making sure an important field within your form is filled out correctly.
Both scripts require me to enter this
onSubmit="return formCheck(this)"
onSubmit= "return verify(this.password1, this.password2)"
how do I combine these two together? I have tried these syntax
<form name="suppliersregistrationform" onSubmit="return (formCheck(this),verify(this.password1, this.password2))" >
<form name="suppliersregistrationform" onSubmit="return (formCheck(this)" onSubmit= "return verify(this.password1, this.password2)">
But none of these syntax worked... pls advise.
I would really appreciate any help on this.. thank you very much.