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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple function call OnSubmit?

Status
Not open for further replies.

james0816

Programmer
Jan 9, 2003
295
US
is it possible to call more than one function using the onsubmit="" option for a form?

i'm looking at two scripts to add to my form one a validator and the other will send the user to a comfirmation page. both of these scripts instruct me to put in the onsumbit="<function>" statment in my form.
 
This is not a PHP question, but rather a JavaScript question.

Why does your function have to invoke two scripts? It can invoke one PHP script, and that script can redirect the browser to the second script using an HTTP "Location" header".


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top