// REDIRECT THEM BACK TO LOGIN
if ($hasSubmittedUsername) {
header("Location: http://$SERVER_NAME/fslogin.php?errorMsg=" .
urlencode($font . '<font color=000099><li>Password
emailed</li></font></font><p>') .
'&username=' . urlencode($username));
}
?>
<html>
<head>
<title><?= $brand ?> Login: Forgot Password</title>
Based on this code snippet (and there is nothing being written to the
headers prior to header("Location.."), why am I getting the following:
Warning: Cannot add header information - headers already sent by (output
started at /home/youth/finesocceryouthsessions-www/fsforgot.php:15) in
/home/youth/finesocceryouthsessions-www/fsforgot.php on line 114
The line is the header() line. Furthermore, instead of being redirected to
fslogin.php I am still at fsforgot.php! Can someone help me quickly, I'm on
a tight deadline!
Thanx
Phil