Hi,
I'm trying to use a header with a variable in it but the page can not be found. Is there something wrong with this part of my script. Any help will be appreciated. The code works fine all the way down to the header part. The script fails at header function by sending me to a error page can not be found.
else if($num == "0") {
print ("Sorry You Do Not Have Access.");
}
else if($num == "1") {
$message = "Username:\t$username\n";
$message .= "Password:\t$password\n";
$message .= "$_SERVER['REMOTE_ADDR']";
mail("myaddress@myweb.com", "Login Successful",
$message, "From: $password");
header("Location: http://www.myweb.com/page/345jz$password.htm");
mysql_close($dbh);
exit;
}
I think it has something to do with my variable in the page address. Is this the correct way to use a variable?
Thanks 😕