Hey folks,
I am setting up a script and in it there is a signup part where a person fills in a username and password. This is the password area:
What I want to do is add an extra field where the person is required to verify their password. So, when both fields are filled in and the user clicks Submit, it would need to read the first password and compare it with the verified one and, when the verified field contains the wrong password it gives an error as such:
The passwords you have entered do not match!
Can anyone tell me how this is done?
I am setting up a script and in it there is a signup part where a person fills in a username and password. This is the password area:
Code:
<tr>
<td><span class="required">*</span>Password:</td>
<td><input type="password" name="password" value="<?php echo $password; ?>" />
<?php if ($error_password) { ?>
<span class="required"><?php echo $error_password; ?></span>
<?php } ?></td>
</tr>
<tr>
What I want to do is add an extra field where the person is required to verify their password. So, when both fields are filled in and the user clicks Submit, it would need to read the first password and compare it with the verified one and, when the verified field contains the wrong password it gives an error as such:
The passwords you have entered do not match!
Can anyone tell me how this is done?