Big improvements to form_validate()
- Halt form submission for any validation error (not just empty required fields)
- Correctly support validation inputs checked by
validate_input()
in addition to the legacy "required" class inputs
Improvements to validate_input()
- New parameter:
is_email
- check for email address format - New parameter:
error_message
- define a custom error message - New parameter:
force_focus
- refocus input on blur - New parameter:
regex
- define custom regex