View Full Version : Redirecting...after a certain amount of time
rharris28
03-05-2006, 02:01 PM
Hi everyone. my problem is that when a form is sent/emailed in my javascript, it takes you to another site, which i cannot change. my question is....is there any script/code that, redirects you to another URL after a certain amount of time, once the form is sent? if i havnt explained this very well im sorry, but its kind of hard to explain. thanks for any help that could be given.
_Aerospace_Eng_
03-05-2006, 02:03 PM
You could try onsubmit="window.location = 'somepage.html'" inside of the open form tag. Why can't you just edit the form action file?
rharris28
03-05-2006, 02:11 PM
well the form is by the kind people at www.freedback.com so it is using theyre system to send the form to me. And because im using the free version to do this, it redirects me to one of theyre sites. so what im wanting really is..when it goes to this site, something to redirect it back to lets say, google.
rharris28
03-05-2006, 02:19 PM
the forms script is....
<!-- Begin Freedback Form -->
<!-- DO NOT EDIT YOUR FORM HERE, PLEASE LOG IN AND EDIT AT FREEDBACK.COM -->
<form enctype="multipart/form-data" method="POST" action="http://www.freedback.com/mail.php">
<input type="hidden" name="acctid" value="*****">
<input type="hidden" name="formid" value="*****">
<input type="hidden" name="required_vars" value="****,****">
<table cellspacing="10" cellpadding="10" border="0">
and after that it is just the rest of my script, followed by the text boxes which the user enters the data, then the submit button.
Horus_Kol
03-05-2006, 03:26 PM
sorry - you're not going to be able to redirect from a page which is part of someone else's site.
you could have a go at having your own email script on your site - you'd need either PHP or ASP to do that.
rharris28
03-05-2006, 03:51 PM
ah. well im screwed then....i dont know any PHP or ASP...i read a script that could do that but you needed CGI (i think) on the server, or CDI bin and a address to that...but i couldnt find any free that did that on there server...any help here?
rharris28
03-05-2006, 03:57 PM
Anyone know if they could help me make my own email script? it would be greatly appriciated...
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.