Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 40

Thread: Link And Http Referer

  1. #11
    h1
    Guest
    Yeah, but your script would die if $ref wasn't set.

  2. Internet, Programming and Graphics   -   #12
    vivitron 15's Avatar Poster
    Join Date
    Jan 2003
    Location
    North East England, UK
    Posts
    1,741
    lol, k...fair enough as i say, didnt think too much about it
    <insert signature here>

  3. Internet, Programming and Graphics   -   #13
    Code:
    &#60;?php
    if &#40;&#036;_GET&#91;&#34;ref&#34;&#93;&#41; { &#036;ref=&#036;_GET&#91;&#34;ref&#34;&#93;; }
    
    print&#40;&#34;&#60;meta http-equiv=&#39;refresh&#39; content=&#39;0; url=&#036;ref&#39;&#62;&#34;&#41;;
    
    ?&#62;
    it works perfect. Do you any place were i could set this up for free ?

  4. Internet, Programming and Graphics   -   #14

  5. Internet, Programming and Graphics   -   #15
    Do you guys know how to do this in javascript? It would help me out alot better.

  6. Internet, Programming and Graphics   -   #16
    h1
    Guest
    Use document.referrer, but this isn&#39;t advised.

  7. Internet, Programming and Graphics   -   #17
    Originally posted by haxor41789@13 February 2004 - 00:50
    Use document.referrer, but this isn&#39;t advised.
    Am not exactly sure how to implement this? How would I work this?

  8. Internet, Programming and Graphics   -   #18
    h1
    Guest
    Use it like any other JavaScript variable. For example...
    Code:
    &#60;script type=&#34;text/javascript&#34;&#62;
    var ref=document.referrer;
    if&#40;ref&#33;=&#34;&#34;&&ref&#33;=null&#41;
    {
     &nbsp; document.writeln&#40;&#34;&#60;meta http-equiv=&#092;&#34;refresh&#092;&#34; content=&#092;&#34;0; url=&#34;+ref+&#34;&#092;&#34; /&#62;&#34;&#41;
    }
    &#60;/script&#62;
    This goes in the <head> tag of course.

  9. Internet, Programming and Graphics   -   #19
    test

    anyone feel free to use

  10. Internet, Programming and Graphics   -   #20
    It seems to work but I need to add some code to remove the ad frame. Do you know me how?

    This looks like it could work but am not sure how to add it to the php script?

    *update*
    Code:
    &#60;script LANGUAGE=&#34;JavaScript&#34;&#62;
     &nbsp;if &#40;top &#33;= self&#41; {top.location.href = self.location.href;}
    &#60;/SCRIPT&#62;
    This also looks like it could work. How would I add it?

Page 2 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •