
The Smart Form Mailer
Back to SEND IT! Technical Reference Guide
SEND IT! Example 1 -- Range Validation
Range validation requires that the entry field be within a
numeric range.
If you enter a value outside of this range, SEND IT! will let you know it! The name of the entry field is "weight". The acceptable range is defined by a hidden field with the same name but prefixed with the character ! or "!weight". The value of the hidden field is 100,200. Try entering a value below or above the range, then click submit. If you enter a valid value, you will see the confirmation page displayed.
SEND IT! Example 2 -- Required Field
In this example, if you don't enter your Last Name. SEND IT! will
provide an information message to your visitor. It uses the
default error message format.
SEND IT! Example 3 -- Required Field
using Header and Footer files for the error message pages
In this example, if you don't enter your Last Name, SEND IT! will
provide an information message to your visitor. It uses your
header and footer pages to enclose the error message(s). This
example also employs the env. preface using HTTP_REFERER to return to
the example from the confirmation page. This trick allows the use
of a single header and footer to be used in multiple forms
without resorting to naming a specific page.
SEND IT! Example 4 -- Passing data
across forms.
Passing information from one form to another is easily
accomplished with SEND IT!.
By using the NoMail reserved Field name and templates, you can chain forms together until you have all the information required. In this example, we will take you through two forms, carrying the information across and displaying it. Make sure you enter the information in required fields :>).