- Joined
- Aug 16, 2022
- Messages
- 53
- Reaction score
- 2
Hi Everybody,
I have a form that will ask a visitor to make a password, and then re-enter the same password to confirm. The HTML code is as follows:
And it will look like this.
I plan to evaluate both inputs with this:
My issue is if the evaluation fails, I want to clear the two responses and start the process again.
How on earth will I do that?
:::::
I have a form that will ask a visitor to make a password, and then re-enter the same password to confirm. The HTML code is as follows:
HTML:
<div class="row">
<div class="col-sm-6 form-group">
<div class="input-group">
<span class="input-group-text"><i class="bi-key-fill" arial-hidden="true"></i> </span>
<input type="password" class="form-control" placeholder="Your Password" id="PW1" name="PW1" required="required">
</div>
</div>
<div class="col-sm-6 form-group">
<div class="input-group">
<span class="input-group-text"><i class="bi-key-fill" arial-hidden="true"></i> </span>
<input type="password" class="form-control" placeholder="Enter Password Again to confirm" id="PW2" name="PW2" required="required"><br>
</div>
</div>
</div>
I plan to evaluate both inputs with this:
PHP:
if ($_POST["PW1"]) !== $_POST["PW2"] {
} else {
????????
}
My issue is if the evaluation fails, I want to clear the two responses and start the process again.
How on earth will I do that?
:::::