Forum Moderators: phranque

Message Too Old, No Replies

Need to do a "You are now leaving" page on website

exit.html?link=

         

rscott1978

11:00 pm on Mar 28, 2003 (gmt 0)

10+ Year Member



I do a website for a business and we are legally required to have a "you are leaving our page" on our website for any external link. Rather than creating a page for every link, i would like to have some code built in that would allow me to have one exit page (i.e. exit.html) that would transfer the external link. I found an example of this on this website:

[archives.gov...]

But i could not use their sorce code to do this on my site. Any suggestions?

korkus2000

3:03 am on Mar 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome rscott1978,

Do you have access to a server side scripting language?

rscott1978

5:46 pm on Mar 31, 2003 (gmt 0)

10+ Year Member



yes

andreasfriedrich

5:54 pm on Mar 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In a resource that is parsed by PHP [php.net] you could add this simple code


<a href="<?=$_GET['link']?>"><?=$_GET['link']?></a>

which would produce html code like this


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

Andreas

rscott1978

6:07 pm on Mar 31, 2003 (gmt 0)

10+ Year Member



Thank you so much! Worked perfectly!