php being weird
Posted by: bostonrant
Posted on: 2006-02-22 13:32:00
Hey,
So I'm trying to make a simple php page. This is my code, but when I try to access the page, no matter what the URL, it always echo's "yadda yadda"
e.g.
error.php?error=404
should echo: "404"
<html>
<head>
<title>Error!</title>
</head>
<body>
<?php
if($error == "404"){
echo "404";
}
elseif($error == "500"){
echo "500";
}
else{
echo "yadda yadda";
}
?>
</body>
</html>