whats wrong?
Posted: Fri Dec 06, 2002 10:08 pm
whats wrong with the below code? it works fine if $dl='pcgame' but none of the other ones work?
Code: Select all
<?php
$dl = $_GET[dl]
if ($dl ='pcgame') {
header("Location: /pcgame.php");
}elseif($dl='movie'){
header("Location: /pcgame.php");
}elseif($dl='console'){
header("Location: /console.php");
}elseif($dl='albums'){
header("Location: /album.php");
}elseif($dl='applications'){
header("Location: /application.php");
}elseif($dl='ebook'){
header("Location: /ebook.php");
}elseif($dl='adult'){
header("Location: /adult.php");
}else{
echo 'not a valid input';
}
?>