Submitter
SUPPORT TOPIC File Information
- Submitted: Mar 24 2007 03:39 AM
- Last Updated: Mar 24 2007 03:39 AM
- File Size: 26.09K
- Views: 5931
- Downloads: 1,340
Download InquiryForm
/**
* ---------------------------
* Snippet: InquiryForm
* ---------------------------
* Version: 1.3 - 2007-03-24
*
* Description:
* This snippet generates a form, for an Inquiry Form.
* It first outputs the form, then it checks the responses
* that the sender has given, plus any other required fields.
* Finally it produces a "message-has-been-sent" page if
* everything is okay, sends an email containing the
* form details to the email address specified plus
* a copy to the user.
*
* This snippet can check for valid Australian Postcodes,
* phone numbers, and mobile phone numbers.
* You'll need to turn this checking off in the configuration
* section if you want to accept those values for other countries.
*
* NOTE: Make sure the Etomite document the snippet is called
* from is non-Cacheable!
*
* See it online at http://www.chapman-h...equest-info.htm
*
* Usage: [!InquiryForm
*
* ?div=[false|0] | someclass
* if not specified then div isn't output
* if false|0 then the div isn't output
*
* !]
*
* History:
* 2007-03-24 1.3 Lloyd Borrett
* Made BCC email address easily configurable.
* Turn on or off Australian phone, mobile and postcode checking.
* URL of privacy policy made a configuration option.
* Added ability to pass a div class wrapper, if div required.
* Updated Postcode checking to handle 3 digit postcodes.
*
* 2006-11-14 1.2 Lloyd Borrett
* Used fieldset to better group label and input.
*
* 2006-11-09 1.1 Lloyd Borrett
* Added City and Postcode fields.
*
* 2006-09-21 1.0 Lloyd Borrett, www.borrett.id.au, lloyd@borrett.id.au
* Adapted from EnergyAgreement snippet by Lloyd Borrett which was
* in turn adapted from the ContactMe 0.1 snippet by Vassili Slessarenko
*/
* ---------------------------
* Snippet: InquiryForm
* ---------------------------
* Version: 1.3 - 2007-03-24
*
* Description:
* This snippet generates a form, for an Inquiry Form.
* It first outputs the form, then it checks the responses
* that the sender has given, plus any other required fields.
* Finally it produces a "message-has-been-sent" page if
* everything is okay, sends an email containing the
* form details to the email address specified plus
* a copy to the user.
*
* This snippet can check for valid Australian Postcodes,
* phone numbers, and mobile phone numbers.
* You'll need to turn this checking off in the configuration
* section if you want to accept those values for other countries.
*
* NOTE: Make sure the Etomite document the snippet is called
* from is non-Cacheable!
*
* See it online at http://www.chapman-h...equest-info.htm
*
* Usage: [!InquiryForm
*
* ?div=[false|0] | someclass
* if not specified then div isn't output
* if false|0 then the div isn't output
*
* !]
*
* History:
* 2007-03-24 1.3 Lloyd Borrett
* Made BCC email address easily configurable.
* Turn on or off Australian phone, mobile and postcode checking.
* URL of privacy policy made a configuration option.
* Added ability to pass a div class wrapper, if div required.
* Updated Postcode checking to handle 3 digit postcodes.
*
* 2006-11-14 1.2 Lloyd Borrett
* Used fieldset to better group label and input.
*
* 2006-11-09 1.1 Lloyd Borrett
* Added City and Postcode fields.
*
* 2006-09-21 1.0 Lloyd Borrett, www.borrett.id.au, lloyd@borrett.id.au
* Adapted from EnergyAgreement snippet by Lloyd Borrett which was
* in turn adapted from the ContactMe 0.1 snippet by Vassili Slessarenko
*/
- 248 Total Files
- 19 Total Categories
- 50 Total Authors
- 131,658 Total Downloads
- TripTracker Gallery Latest File
- Dean Latest Submitter











