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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting from a form!!

Status
Not open for further replies.

johnmak

Programmer
Apr 7, 2003
51
GB
Hi.

I have signed up with bravenet and they are handling the form i have put on my website.

Whenever i redirect from the Brvenet confirmation page it the home page always nests within the frameset.

I have tried putting in target="_top" and _parent but it doesnt seem to work.

The code i have been trying to put in is:

<input type=&quot;hidden&quot; name=&quot;thankyou&quot; value=&quot; target=&quot;_parent&quot;>

The thankyou part is the variable set to putting you to a different page after being on there confirmation page.

If someone could test my page at then go to contact.

I would be very grateful of any help here as i have been trying all afternoon.

Thank. John.
 
just create a new page in your domain and point the value of the field to that new page.

1. Create Thank you page thanks.html.

2. <input type=&quot;hidden&quot; name=&quot;thankyou&quot; value=&quot; >

that should open the thankyou page just in the frame you are working on.
Now if what you want is to open the thank you page in the whole screen, do the same but add some redirection code that opens another page in the same window (using _top i guess).
 
Thanks for your reply grt.

I have done what you have said but it is still not opening a new page.

Heres the code i have put in the &quot;thankYou.htm&quot; page which is set to goto the main page.

<meta http-equiv=&quot;refresh&quot; content=&quot;4;URL=http://www.houseofmulben.com&quot; target=&quot;_parent&quot;>

Thanks. John.
 
Why would you like to redirect the user to the main page without letting them know that you actually got the email??
Personally I see some users thinking that the form never got submitted (it happened to me before in a project with some users).
Now if you create a thankyou page and inside you have some text like..


The information you have submitted was succesfully received by our technical support.

plus some nice graphic and a link back to the home page. The users will know that their time filling the form was not spent, that indeed you got the email.
Now on the link back to the home page you can either load the whole frameset again or just the contents of the home page in the current frame.

I'll try this when I get home. I also use bravenet and you got me intrigued with your problem...
check back tomorrow.

 
Hi there i have sorted the problem out.

I am redirecting them to a thank you page then i am redirecting them to the main page.

What i did was change the thank you page link to the main page from houseofmulben.com to houseofmulben.com/main.htm which is the main page.

It opens on top of the current frameset and works as it should now.

Thank you for helping me though , much appreciated.

John.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top