View Single Post
Old 05-20-2003, 03:36 AM  
Validus
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Calgary, Canada
Posts: 4,012
Playing with PHP. Got a little hanger...

I was playing last night with some PHP and... I got stuck... what am I doing wrong?



PHP Code:
<?PHP
$line 
file('tpl/gen_text.tpl');

if(!empty(
$_GET["scr"]))
 { switch(
$scr) {
    case 
"DE":
        print(
"$line[1]");
        break;
    case 
"EN"
        print(
"$line[2]");
        break;
    default:
        print(
"$line[1]");
        } } 
else { 
print(
"$line[1]");
}
?>
Validus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote