02-24-2007, 07:21 PM
I am php beginner and just write this simple program, Can someone please solve my code problem? Whats wrong with it?
PHP Code:
<?php
$name = $_GET['name'];
$name = str_replace("admin","", $name);
$lastn = $_GET['lastn'];
$full = $name . " " . $lastn;
echo $full . " how are you today?";
if ($name == "hacker" OR $lastn == "hacker") {
echo "You are hacker!
";
} else {
header("Location: new.php");
}
?>
PHP Code:
<?php
$name = $_GET['name'];
$name = str_replace("admin","", $name);
$lastn = $_GET['lastn'];
$full = $name . " " . $lastn;
echo $full . " how are you today?";
if ($name == "hacker" OR $lastn == "hacker") {
echo "You are hacker!
";} else {
header("Location: new.php");
}
?>