# Sample DoForm Configuration File # # Charles Cooley 1/9/96 # # This file demonstrates all of the common features # of the DoForm HTML form data collection script. # Make sure that something was entered for the name # and use the default results for a require action REQUIRE NAME | # Processing stops if the NAME field was blank. # Check to see if they are old enough (of course they # could be lying) and give a simple error message. REQUIRE AGE > 17 This order form is only for people 18 years or older. | # Processing stops if the person is to young. # Mail the actual order information to me for processing. # (These are copied into the file sampform.ord in the # Web directory by a mail filtering script.) # (Date is one of the CGI environment variables.) MAIL-TO itweb@jmu.edu SampForm Order +--------------------------------------------------+ || SampForm Order || || for || |||NAME^50||| || at || |||DATE^50||| +--------------------------------------------------+ Item Quantity ---- -------- Widget |WIDGETS>8| Gadget |GADGETS>8| Address: |ADDRESS+| Payment Method: |PAY| Preferred Shipper: |SHIPPER| ==================================================== | # Record the information in the log file using the # default format (all fields supplied in the form). SAVE-AS sampform.log | # Record some of the info. for later statistical analysis. SAVE-AS sampform.dat |AGE>2| |WIDGETS>6| |GADGETS>6| |PAY<5| |INFO| | # Be polite to the customer Respond An order for |WIDGETS| Widgets and |GADGETS| Gadgets has been recorded for |NAME| at |DATE| and will be shipped to:
       |ADDRESS+|
The payment method for this order is |PAY|.

Thank you for your order.

If you have any questions or this order information is incorrect, please contact our customer service department at itweb@jmu.edu.

Choose the BACK option in your web browser to return to
the form submission page to view the other results of
the DoForm script.
Submitted by: |REMOTE_USER| | # Send something to everyone, but send more to the fools SAVE-AS sampform.mkt Send |INFO<4| mail to: |NAME| |ADDRESS+| |