$form->addField('email', 'User Email'); $form->addValidator('email', 'Please enter your email address', 'notEmpty');
$form->unsetValidator('email', 'notEmpty');This will remove the notEmpty validation rule from the email field. The PHP Form library is a package for building HTML forms and validating form data.