can you perform 2 actions in an "onsubmit" action

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">
 
W

WebcastMaker

It all works perfectly.....
However........
I would like to popup a page called thankyou.htm when hitting the submit
button

Change mailme.pl so it redirect you to your "thanks" page.
 
T

Toby Inkster

mm said:
<br><font size=2 face="sans-serif">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.</font>
<br><font size=2 face="sans-serif">&nbsp;it immediately redirects you to
back to the home page(index.htm)</font>

Even though this is alt.html, please post in plain text.

In answer to your question, you should make modifications to the mailme.pl
script or to index.htm to achieve your aims.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,187
Latest member
RosaDemko

Latest Threads

Top