free hosting   image hosting   hosting reseller   online album   e-shop   famous people 
Free Website Templates
Free Installer

E-mail Order Form II - Advanced


This script is a more advanced version of the previous E-mail Order Form.

It allows you to create a functional email order form for your site.

It also uses a lot of the formatting techniques from Custom E-mail Form.

The features of this script:
  • Checkboxes instead of radio buttons
  • Only one checkbox can be selected at a time for each product
  • Multiple items
  • Automatic totalling of prices and quantities
  • Form Reset button with "Proceed?" warning
  • Flashing Submit button with "Thank You" acknowledgement

  • NOTE:
    This does not allow for credit card validation or payment processing.
    For that, you need a secure server with payment collection facilities, such as Secpay.

    However, if you need an advanced order form that uses e-mail and not CGI, this may well do the job.


    How It Works

    This is far too complex to explain here in detail, so simply study the source code.

    In short, the script uses the following functions:
  • check1-5 - checkbox validation. One function for each of the 5 products
  • Totals - all price and quantity subtotals and grand totals
  • formatCurrency - converts floating point numbers to money values
  • initForm - resets the form to the desired defaults when Reset is clicked
  • mailIt - processes the form output for transmission by e-mail
  • flashit - makes Submit button flash (Note: this script at bottom of body section)

  • Try It Out

    Send an email to yourself to see how the formatting looks.

    Since plain text encoding is used, it looks best using a fixed-width font in your e-mail reader.


    Item Price Colour Qty Subtotal
    Dog Collar $12.95 Red Blue White   
    Mouse Mat $22.50 Red Blue White   
    Tea Pot $45.95 Red Blue White   
    Chair $145.75 Red Blue White   
    Planter $17.20 Red Blue White   
    TOTALS:


    Recipient:
    Subject:


    Your Name:


    Address:
    City:
    Zip/Postcode:
    Email:
    Comments:

      


    © 2001 CyberSchool