Hi, I have a custom form on a webpage, and some fields need to be filled in.
I create the fields, I add them to the fieldset, I add the field names to a RequiredFields, as in
$validator = new RequiredFields('Surname', 'FirstName', 'BBOUserName', 'Password', 'Email');
And if I don't fill in the fields, I get an error message. Fine.
Except that the RequiredFields is taking no notice of the Password field, which is defined as
$Password = new ConfirmedPasswordField(
$name = 'Password',
$title = 'Password*',
$value = $PasswordVal,
'Please confirm your password'
What am I doing wrong?