1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help on my script

Discussion in 'PHP & Perl' started by rap8557, May 23, 2009.

  1. rap8557

    rap8557 Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 15, 2008
    Messages:
    1,081
    Likes Received:
    436
    i used DMR but it doesnt work on IE. how can i fixed this?
    here's the code
    page1
    Code:
    <html>
    <head>
    <style type="text/css">
    
    #conash3D0 {height:0px; top:-1px;}
    
    </style>
    
    </head>
    <?php 
    echo "<meta http-equiv=\"refresh\" content=\"0;url=rdm2.php\">"; 
    ?>
    
    </html>
    page2
    Code:
    <html>
    <head>
    <style type="text/css">
    
    #conash3D0 {height:0px; top:-1px;}
    
    </style>
    
    </head>
       <?php
    $referer = $_SERVER['HTTP_REFERER'];
    if($referer == "")
        {
    echo "<meta http-equiv=\"refresh\" content=\"0;url=http://reflink.com\">";    
        }
    else
        {
    echo "<meta http-equiv=\"refresh\" content=\"0;url=http://fakesite.com\">";    
        }
    ?>
    </html> 
    thanks!
     
  2. 00CivicEX

    00CivicEX Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 3, 2009
    Messages:
    293
    Likes Received:
    214
    Try using this
    PHP:
     '<meta http-equiv="refresh" content="0;url=http://www.yourwebsite.com">';