This is the error I recieve.
Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\authenticate.php:9) in c:\inetpub\wwwroot\authenticate.php on line 40
Here is the code...
<?
$UserName = $POST['UserName'];
$Password = $POST['Password'];
$link = mysql_connect("localhost", $UserName, $Password);
if($link)
{
$text2 = <<<END
<center>
<form action="newspost.php" method="post" name="News" id="News">
<input name="UserName" type="text" value ="$UserName" readonly="true">
<BR>
<BR>
<br>
<input name="Password" type="password" value="$Password" readonly="true">
<BR>
<BR>
<br>
<textarea name="News" cols="70" rows="30"></textarea>
<BR>
<BR>
<br>
<input name="submit" type="Submit" value="Update News">
</form>
</center>
END;
print $text2;
}
else
{
ECHO "Login Failed! Please try again...";
header("location:index.php");
exit;
}
?>
Its says the problem is at the initial <? . Thanks for the help!