######## *define-variables* section ######## *define-variables* # Note that all variables expect [comment] are required [req-name] [req-email] [req-phone] [req-address] ######## *success-response* section ######## *success_response* # Note the !use-linebreak-mode command below # This will cause
s to be added at the end of each line in the comment # but only for this section !use-linebreak-mode = [comment] # just a simple success-response here which # verifies that all required variables were completed Success

Thanks for completing all fields!

Below are the values you supplied:

Name: [name]
E-mail address: [email]
Phone number: [phone]
Street address: [address]
Comment:
[comment]

Return to the original form.

######## *error-response* section ######## *error-response* Error

Error - Missing Fields

Examine the form below and please complete the missing fields.

As you enter information into fields and re-submit the form you'll notice the completed fields disappear. If you view the source, you'll see that complete fields are coded as hidden form values.

# The form below is just like the original except that if the user # has supplied a value, we !carry-forward the information.. # If no value was supplied, we print "oops" and ask for the value # again

# "name" was supplied. Just !carry-forward the name field # as a hidden variable. !print-if [name] !carry-forward = [name] # "name" was not entered. Whoops !print-if [name] eq "" Oops! Please enter your name below:

# Do the same for the other form variables !print-if [email] !carry-forward = [email] !print-if [email] eq "" Oops! Please enter your email address:

!print-if [phone] !carry-forward = [phone] !print-if [phone] eq "" Oops! Please enter your phone number:

!print-if [address] !carry-forward = [address] !print-if [address] eq "" Oops! Please enter your street address:

!print-if [comment] !carry-forward = [comment] !print-if [comment] eq "" The comment below is optional:
!end-print-if

Return to the original form.