Thats so strange, I have white spaces everywhere how would I know which ones (if any are causing the problem?
<html>
<table border=1>
<form name="login" action="login.php" method="post">
<tr>
<td>
UserName;
<input type="text" value="" name="uname">
</td><td rowspan="2"><p>Please enter your username and password to gain access to the Dev Arch Request Page<br></p></p>New user? Click <a href="newuser.htm">here</a></td></tr>
<tr><td>
Password;
<input type="password" value="" name="pword">
<br>
<input type="submit">
</td></tr>
</form>
</table>
</html>
<?php
$uname = $_POST['uname'];
$pword = $_POST['pword'];
$stateVar = "Open";
$currtime = date("H:i");
$currdate = date("j/m/y");
if(($uname=="") || ($pword=="")) {
echo "Missing field please try again";
}else{
mysql_connect("localhost", "root", "monkey") or die(mysql_error());
mysql_select_db("test") or die(mysql_error());
$result = mysql_query("SELECT * FROM devArch_emp WHERE username='$uname'") or die(mysql_error());
while($rowsAll = mysql_fetch_array( $result ))
{
$name = $rowsAll['name'];
$email = $rowsAll['email'];
$deskno = $rowsAll['deskno'];
$extno = $rowsAll['extno'];
$password = $rowsAll['password'];
}
if(!($pword == $password)){
echo "Incorrect Username or Password, Please try again";
} else {
header("Location: /auth.php");
exit;
}
}?>