M
mm
I have a page with a form on it.........When i hit [SUBMIT] on the form,
it sends all of the information to my email account.
it immediately redirects you to back to the home page(index.htm)
It all works perfectly.....
However........
I would like to popup a page called thankyou.htm when hitting the submit
button,
I'm having a rough time with the syntax on this.
the [onsubmit] action validates the form..........
QUESTION: can my [onsubmit] line do 2 actions?
1) validate the form
2) popup a page
onsubmit="MM_validateForm('Name','','Phone',',etc');return
document.MM_returnValue"
<FORM METHOD="POST" ACTION="http://www.website.com/bin/mailme.pl">
<INPUT TYPE="hidden" NAME="recipient" VALUE="(e-mail address removed)">
<INPUT TYPE="hidden" NAME="redirect"
VALUE="http://www.website.com/index.htm">
it sends all of the information to my email account.
it immediately redirects you to back to the home page(index.htm)
It all works perfectly.....
However........
I would like to popup a page called thankyou.htm when hitting the submit
button,
I'm having a rough time with the syntax on this.
the [onsubmit] action validates the form..........
QUESTION: can my [onsubmit] line do 2 actions?
1) validate the form
2) popup a page
onsubmit="MM_validateForm('Name','','Phone',',etc');return
document.MM_returnValue"
<FORM METHOD="POST" ACTION="http://www.website.com/bin/mailme.pl">
<INPUT TYPE="hidden" NAME="recipient" VALUE="(e-mail address removed)">
<INPUT TYPE="hidden" NAME="redirect"
VALUE="http://www.website.com/index.htm">