Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: incrediBILL
<form method=post onSubmit="window.open ('index.htm')" action="http://us.1.p.webhosting.yahoo.com/forms?login=__">
<input type="submit" value="Submit Comments"></form>
When submitting the form, how do I get it to redirect to my index page without opening up another window? Right now, it is opening a new window and the other window shows all the information entered into the form.
Thanks for helping.
You could remove the
Then it won't open up the second window, however it also won't go to your index page, but rather to the page in the action.
For it to go to your index.htm after submitting, then the target page that you are submitting to has to do the redirect.
Thanks for posting. Actually, what I am struggling is how to implement a form submit with a redirect. I was told that the following will do a redirect, then the question is how do I do this with a submit button.
<input type="hidden" name="redirect" value="http://your.host/to/file.html">
What kind of information are you trying to collect exactly? If you don't have a working form already I would suggest looking at [scriptarchive.com...] as it goes into pretty good detail about getting a form setup.
I could also lend a hand for a small fee of course if you are having a tough time. But keep reading and playing around with it...that's going to be your best bet in the long run and you'll figure it out:)
Basically, what I have right now is a form where I collect some survey information from customers as they sign up as memebers. But I would love to be able to redirect to a thank you page and offer an immediate coupon code when they submit the form. Right now, it only shows the information entered when the form is submitted.
ONce again, thanks!