Hi all , below is a program i have made, and i need to know the code to compare password and password1 so they are the same value and the user hasn't made a mistake, but im not sure on how to do this, any ideas ?
<body>
<table width="744" height="458" border="1">
<tr>
<td height="63" colspan="3" bgcolor="#8BCB6A"><p><img src="CO-OP title.gif" width="407" height="64" /></p></td>
</tr>
<tr>
<td width="97" bgcolor="#003366"><</td>
<td width="519" bgcolor="#003366"><table width="519" height="294" border="1" >
<tr>
<td width="509" bgcolor="#E0EEFE"><p align="center">Welcome to the Co-operative Automated rota system, please enter a new password below :
</p>
<form action="loginfull.php" method=POST >
<div align="center">
<p>
<input type="hidden" name="EmployeeID" value=" <?php echo $EmployeeID; ?>" >
<input type="hidden" name="Password2" value=" <?php echo $Password; ?>" >
New Password :
<input name="Password" type="password" value="" size="30" />
</p>
<p>
Re Type New Password :
<input name="Password1" type="password" value="" size="30" />
</p>
<p> </p>
</div>
</form>
<input type="submit" name="submit"value =" Confirm " /></td>
</tr>
</table></td>
<td width="106" bgcolor="#003366"> </td>
</tr>
</table>
<input type="hidden" name="EmployeeID" value=" <?php echo $EmployeeID; ?>" >
<input type="hidden" name="Password" value=" <?php echo $Password; ?>" >
<?php
}
else {
echo header('Location: loginfull.php');
"<?EmployeeID=$EmployeeID&Password=$Password&connection=$connection'><a/>"
?>
<?php
}
?>
</body>