|
|
Examples
|
| |
The following examples are pairs of HTML form / sgml config files.
I would personally name the sgml files as *.sgml, but here I've
used the *.txt extension so that they will display on your web
browser more easily. They work with any extension.
|
|
| | | |
| |
|
| |
|
|
|
Example 0 -- Minimal Configuration
|
| |
example0.html --
example0.txt
This demonstrates the miminal configuration.
|
|
| |
|
|
|
Example 1 -- Server-Side Validation
|
| |
example1.html --
example1.txt
This demonstrates server-side input validation.
|
|
| |
|
|
|
Example 2 -- Conditional HTML Responses
|
| |
example2.html --
example2.txt
This demonstrates conditional evaluation of HTML responses.
|
|
| |
|
|
|
Example 3 -- Mail Addressing
|
| |
example3.html --
example3.txt
This demonstrates mail addressing and formats.
|
|
| |
|
|
|
Example 4 -- URL Redirection
|
| |
example4.html --
example4.txt
This demonstrates url redirection.
|
|
| |
|
|
|
Example 5 -- Debugging
|
| |
example5.html --
example5.txt
This demonstrates the debug attribute,
in case FormMail isn't doing what you think it should.
|
|
| |
|
|
|
Example 6 -- Conditional Validation
|
| |
example6.html --
example6.txt
This demonstrates conditional validation.
|
|
| |
|
|
|
Example 7 -- Advanced Formatting
|
| |
example7.html --
example7.txt
This demonstrates use of the <format> tag.
It also used the DEBUG attribute, to make it easier
to see how the reformatting works, and uses the
<validate> tag to check the values after
reformatting.
|
|
| |
|
|
|
Example 8 -- Subscribe to a Listserv List
|
| |
example8.html --
example8.txt
This form is set to let you fill in your email address and name,
and then subscribes you to a listserv list. Not much simpler
than sending mail, but if you really want to do this from
a web form, you can.
|
|
| |
|
|
|
Example 9 -- Write Info to a Disk File
|
| |
example9.html --
example9.txt
Appends some info to a file. Note this cannot be
a live demo, but you can examine the config file
to see how it is done.
|
|
| |
|
|
|
Example 10 -- Use Bluestem, and Write Info to a Disk File
|
| |
example10.html --
example10.txt
Force use of bluestem authentication, then append some info to
a file. Note this cannot be a live demo, but you can examine
the config file to see how it is done.
Let me know what you think. If you haven't tried it,
example3 above is a real-live send-me-your-opinion
form. Not only can you use it as an example, you can
use it!
|
|
| |
|