[an error occurred while processing this directive]
![]() | Forms Processor Advanced Commands |
Example:
# checks to see if the zip code and phone number are of proper length
# put the length of $zip_code into $zip_len
$zip_len = length($zip_code);
# compare (inline) the length of the phone number to 12 and the length of the
# zip code to 5
if (length($phone_number) != 12 | $zip_len != 5)
# incorrect length
format screen
Error, either you did not enter your phone number correctly or you did not enter your zip code correctly, please reenter this information.
.
endif