|
The purpose of validating the data is to insure that all
required fields are entered and that the format of the data is
correct. AFH has the following validation facilities;
- Select those fields that must be entered
- Select specific fields whose format should be validated
- Check for numeric
Check for alphabetic
Check for valid date
Check for valid email address
Check for valid credit card format
Check if required
The configuration option below determine whether the
validation selections.'
<input type=hidden
name="config_fieldrequired"
value="field1,field2">
This says to verify that form fields
called field1 and field2 are completed.
To specify which fields should be
validated and what type of validation add 1 line for each
field in the form
<input type=hidden name="val_fieldname" value="type">
For example if you want to check form
field Year for a numeric value use
<input type=hidden name="val_year"
value="numeric">
The validation types used by Advanced Form Handling are shown in the table below.
| Numeric |
Checks to see if value is numeric
|
| Alpahnumeric |
Can be numbers or letters
|
| Alpha |
Must be all letters
|
| Creditcard |
Must have valid credit card format
|
| Email |
Basic email format
|
| Date |
Must be a valid date
|
|