0

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>&nbsp;</p>
              </div>
              </form>
          <input type="submit" name="submit"value ="    Confirm    " /></td>
		  
      </tr>
    </table></td>
    <td width="106" bgcolor="#003366">&nbsp;</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>

Edited by Ezzaral: Added code tags. Please use them to format any code that you post.

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by joban.ali
0
if ($password1 != $password) {
   $error= 'Your Password do not match';
    } else {

Database run ya database query script

or something like that will do the trick.

Hope that helps

Edited by mike_2000_17: Fixed formatting

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.