PHP problem (simple stuff)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Validus
    Confirmed User
    • Jul 2001
    • 4012

    #1

    PHP problem (simple stuff)

    Alright, why is this not working? LOL, thank god I am not a programmer or I would be long out of a job.

    It looks gooood to me... LOL... Any ideas?

    PHP Code:
    
    hahahahahaha hahahahahahahahahaha="refresh" content="5;URL=
    
    <?PHP
    
    $001 = "http://www.yahoo.com/";
    $002 = "http://www.ebay.com/";
    
    if(!empty($_GET["scr"]))
     { switch($scr) {
        case "001":
            print "$001";
            break;
        case "002": 
            print "$002";
            break;
        default:
            print("$line[9]");
            } } 
    else { 
    print("$line[9]");
    }
    ?>
    
    ">
  • Validus
    Confirmed User
    • Jul 2001
    • 4012

    #2
    This works... was the numbers. so I put a "t" infront of it...


    PHP Code:
    
    hahahahahaha hahahahahahahahahaha="refresh" content="5;URL=
    
    <?PHP
    
    $t001 = "http://www.yahoo.com/";
    $t002 = "http://www.ebay.com/";
    
    if(!empty($_GET["scr"]))
     { switch($scr) {
        case "t001":
            print "$t001";
            break;
        case "t002": 
            print "$t002";
            break;
        default:
            print("$line[9]");
            } } 
    else { 
    print("$line[9]");
    }
    ?>
    
    ">

    Now, I would like to move the variables into another file and get rid of the if else stuff. So I can use any ?scr= thing? without having it in there. Any ideas?

    Comment

    • MetaMan
      I AM WEB 2.0
      • Jan 2003
      • 28682

      #3
      add a 6 to line 7 and a 5 to line 8,
      problem solved.

      Comment

      Working...