ah after pondering for a few minutes i think i found it, the double equals sign should be used i think ( == )
also the current if statement is this:
if ($username = $confirm);
{
echo "<p><a href='postnews.php'><font color='black'>Post News</font></a>";
}
notice the ; at the end of the first line, i think this is causing it to ignore the if and just carry on with the echo.
try changing it to this:
if ($username == $confirm)
{
echo "<p><a href='postnews.php'><font color='black'>Post News</font></a>";
}