doorbreaker
Programmer
Hi,
I have two functions that need to run when I submit a form.
One fucntion checks that all fields are filled out correctly (checkform) the other sets hidden fields to certain values (onsubmit)
In the form tag if I put either of them in like this:
onsubmit="onSubmit(this);"
or
onsubmit"return checkform(this);"
they work fine. If I put them together neither work...
any ideas?
I have two functions that need to run when I submit a form.
One fucntion checks that all fields are filled out correctly (checkform) the other sets hidden fields to certain values (onsubmit)
In the form tag if I put either of them in like this:
onsubmit="onSubmit(this);"
or
onsubmit"return checkform(this);"
they work fine. If I put them together neither work...
any ideas?