quick php code help

Posted By: chinedu85 ()
Posted On: 2004-Jun-07 19:26

I need to know the quick code to send a user to a different website after they complete a form.

Basically instead of taking them to a thank you page via:

ex: include('thankyoupage.htm');

I want to direct them to a new domain:

ex: http:www.abdd1234.com

Do I need to just swap out the "include" with something else?

I'm kinda new to this, thanks for the help.


Posted By: davaddavad ()
Posted On: 2004-Jun-07 19:34

On the thankyoupage.htm put a hyperlink to the new url you are pointing them to:


<a href="http://www.aaabbbetc.com">


Posted By: chinedu85 ()
Posted On: 2004-Jun-07 19:40

is there another way? I don't want to even send them to a thank you page.


Posted By: davaddavad ()
Posted On: 2004-Jun-07 19:51

I think you can use javascript and either find or write a function that will do what you want.
Here is a place to start:

http://hotwired.lycos.com/webmonkey/98/04/index3a_page7.ht


Posted By: NEntropy ()
Posted On: 2004-Jun-09 05:00

If you don't send any information back, you can use the header() function. (What I mean is that you don't display *ANY* data back to the user before running the header function)

Just do something like


Code: [copy]






Posted By: g1smd (Staff)
Posted On: 2004-Jun-17 21:36

The header command is what you require.

It bounces the user straight over to the new page.