What I need to do, using PHP, is verify that the second password entered matches the first. If the passwords do not match I need to send the user back to the form (CreateAccount.php) to re-enter the data. If the passwords match I need to allow the info to pass through to another webpage stating that all the information was entered properly and in the correct format.
I've figured out how to verify phone numbers, ZIP codes, states, and the like but am running into issues on how to do so with passwords using PHP. I wanted to post my code here to see if I have coded properly. Here is the code I've come up with:
if ($_GET['txtPasswordCheck']) !== ($GET_['txtPassword'])
{
header('location:CreateAccount.htm');
exit();
}
else
{
$PasswordCheck = $_GET['txtPasswordCheck'];
}
Is this the proper format for checking to see if the passwords match?

New Topic/Question
Reply




MultiQuote







|