If_FormValidityTester
The FormValidityTester interface module provides tools for Form Validity Testing
|
| formvariablewhitespacechecker | | This function checks a series of form variables to see if they are empty (which means nonexistant, '', or filled with whitespace only) and if so logs the error specified. | | | | The arguments given are 'name of form variable=error' e.g.: | | addr1=You did not enter your billing street address | | city=You did not enter your billing city | | | | Returns 'yes' or 'no' depending on whether there were errors. |
|
| checkcreditcardnumber | | Returns 'yes' or 'no' depending on whether there were errors. This checks to see if a credit card number is valid. If not, it logs the error specified. | | | | Arguments: | | ccnum=Credit card number to test (required) | | error=Error to log if invalid (required) |
|
| checkcreditcardexpiration | | This checks to see if a card is expired | | | | Arguments: | | ccexpmonth - Credit card expiration month | | ccexpyear - Credit card expiration year | | error - Error to log if expired | | | | Returns 'yes' or 'no' |
|
| wildcardmatch | | This command logs an error if a string matches a particular wildcard pattern. * and ? chars are allowed in the wildcard pattern. | | | | Arguments: | | string=String to match | | mask=Wildcard mask | | error=Error string to log if the string matches |
|
| checkemailaddress | | Checks to see if an e-mail address is a valid format e-mail address | | | | Arguments: | | emailaddr - E-Mail address to test | | error - Error to log if invalid |
|
| adderror | | Adds an error to the error list | | | | Arguments: | | error - Error message to add |
|
| printerrors | | This command prints all the errors with prefix and postfix if present. Nothing is returned. |
|
| haserrors | | Returns 'yes' or 'no' |
|
| errorcount | | Returns and prints the number of errors |
|
| clear | | Resets and readies for new test batch |
|