Forum Moderators: coopster

Message Too Old, No Replies

PHP redirect variable from the url

         

gms3651

2:07 pm on Jun 7, 2006 (gmt 0)

10+ Year Member



Hello,
I have two pages index.php and page1.htm. page1.htm contains one link to web site outside of the one they are currently in. We'll whenever they click on that link I need to take them to index.php which is notifies the user that they are leaving our site and then after a few seconds takes them to the new web site.

Here is the code of the link from page1.htm

<a href="../redirect/index.php?http://www.somesite.org/">Click Here</a>

So whenever it takes them to index.php the url will look like this.

[mysite.com...]

The part that I'm not sure about is how to get that web address variable at the end of the url. It doesn't have a name so I can't do a $_GET['variable_name'].

Any help would be appreciated.

gms3651

3:24 pm on Jun 7, 2006 (gmt 0)

10+ Year Member



Nevermind. Got it figured out. Insead of passing

?http://www.newsite.org

I did

?name=http://www.newsite.org

eelixduppy

5:40 pm on Jun 7, 2006 (gmt 0)



I'm glad you got it all sorted out gms3651!