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!

confirmation "sent" page

Status
Not open for further replies.

5656

Technical User
Jan 6, 2001
68
US
I'm know this is an easy question...but I'm a newbie
I would like to send information inputted by a user to my e-mail account (know how to do this) -- and once they hit the SUBMIT button I would like to send them to another html page -- such as a "thank you" or "confirmation" page.
Isn't there a very simple way to do this ?

Thank you for any help.

-joe
 
you could use a settimeout i guess..

try putting in the form tag:

onsubmit="setTimeout("window.location='page.htm'", 5000)"

this will wait 5 seconds then redirect to page.htm adam@aauser.com
 
I tried the setTimeout but didn't work.
I've also tried this but no luck: onSubmit="window.location.href=('thankyou.html')"
any other ideas ? I know this is simple and have seen it done...just don't remember correct syntax...

thanks again.

joe
 
<FORM METHOD=&quot;POST&quot; ACTION=&quot;mailto:joe@spyder9.com&quot; ?subject=&quot;request&quot; ENCTYPE=&quot;text/plain&quot;>

<INPUT TYPE=&quot;text&quot; NAME=&quot;references&quot; SIZE=&quot;3&quot; MAXLENGTH=&quot;40&quot;>
.
.
.
.
<INPUT TYPE=&quot;submit&quot; NAME=&quot;Submit&quot; VALUE=&quot;submit&quot; onSubmit=&quot;window.location.href('thankyou2.htm')&quot;;>

</FORM>

thanks.
 
this worked:

<script>
function somefunc()
{
setTimeout(&quot;window.location.href('thankyou2.htm')&quot;,3000)
}
</script>
<FORM onsubmit=&quot;somefunc()&quot; METHOD=&quot;POST&quot; ACTION=&quot;mailto:joe@spyder9.com&quot; ?subject=&quot;request&quot; ENCTYPE=&quot;text/plain&quot;>

<INPUT TYPE=&quot;text&quot; NAME=&quot;references&quot; SIZE=&quot;3&quot; MAXLENGTH=&quot;40&quot;>
.
.
.
.
<INPUT TYPE=&quot;submit&quot; NAME=&quot;Submit&quot; VALUE=&quot;submit&quot;>

</FORM> jared@aauser.com
 
thank you ! I'll give it a whirl...
 
jaredn ~

when I attempt to use that script I get an error message:
window.location.href is not a function.

any ideas ?
 
change:

setTimeout(&quot;window.location.href('thankyou2.htm')&quot;,3000)


to:

setTimeout(&quot;window.location = 'thankyou2.htm'&quot;,3000)
adam@aauser.com
 
GOT IT !!
Thank you to both jaredn and luciddream.
I'm sure we'll meet again...

-joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top