Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hod you you call 2 functions in one onSubmit 1

Status
Not open for further replies.

meeble

Programmer
Sep 24, 2002
137
GB
I thought this was right:

onsubmit="return checkban(); return(checkSubmit())"

but it just does the first one.

Thanks

James
 

Of course it will - because the return statement returns control, and thus the second statement never executes. Try something like this:

Code:
onsubmit="return (checkban() && checkSubmit());"

Hope this helps,
Dan

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top