Thanks Jason!
Is there a way to add the background css colour change to a form field for two types of validation?
The problem that I get is that I can not add two class="" to one form field.
I was thinking of adding an OR statement but can't seem to get it to work.
I have put the relevent section of code below;
<th>Retype Password:</th>
<td><label for="pw2"></label>
<input name="pw2" type="text" id="pw2" value="<?php echo(ValidatedField("Registration","pw2")) ?>" size="32" <?php
if (ValidatedField('Registration','Registration')) {
if ((strpos((",".ValidatedField("Registration","Registration").","), "," . "3" . ",") !== false || "3" == "")) {
if (!(false)) {
?>
class="errorbackground"
<?php //WAFV_Conditional Registration.php Registration(3:)
}
}
}?>/>
<?php
if (ValidatedField('Registration','Registration')) {
if ((strpos((",".ValidatedField("Registration","Registration").","), "," . "4" . ",") !== false || "4" == "")) {
if (!(false)) {
?>
<div class="errortext">Passwords did not match</div>
<?php //WAFV_Conditional Registration.php Registration(4:)
}
}
}?>
<?php
if (ValidatedField('Registration','Registration')) {
if ((strpos((",".ValidatedField("Registration","Registration").","), "," . "3" . ",") !== false || "3" == "")) {
if (!(false)) {
?>
<div class="errortext">Please retype your password</div>
<?php //WAFV_Conditional Registration.php Registration(3:)
}
}
}?></td>