Home  |   Guide to VP-ASP  |   Advanced Form Handling  |     Purchase
Advanced Form Handling
Quick Links

Home

Purchase

FAQ

Help and Support

More Links

HK Programming Forum

Advanced Form Handling Home

 

Configuration Use

The hard work has been done for you. Try Advanced Form Handling

  Advanced Form Handling _ How to use Configuration
 
Advanced Form Handling

Advanced Form Handling allows you to control the how the form is handled. Items you can control include:

  • Email addresses to receive form responses
  • Whether to email the responder
  • Anti hacker checks on the form
  • Basic form validation such as required fields
  • Pattern files to be used to control form
  • Attachments to be included in email responses

 

Where to put Configuration values

Configuration values are supplied by you in two ways. They can be hidden fields within the form itself. Or they can be a plain text file. If both hidden fields and a file are used, the hidden fields take precedence. Examples of both are shown below.

 

Configuration Values

Configuration values all start with the config_ for example config_emailaddress.

 

config_emailaddress The email address to receive the response
config_emailsubject" The subject of the email
config_emailsystem The mail server. For more information click here
config_emaildriver" The mail driver used to actually send mail. For more information click here
config_emailtemplate The name of the pattern file to be used to construct email response. For more on patterns click here
config_emailresponder" No means that the person completing the form will not receive an confirming email. Yes sends a confirming email to the responder
config_emailresponderfield The form field that represents the email address of the responder
config_completionurl" The URL to be directed after the form has been completed
config_completionlink The hyperlink to be generated after the form is completed
config_completiontext The text to be displayed to responder after form completion
config_completetiontextfile File name to be displayed to responder after form completion
config_fieldorder when not using a pattern file for formatting the response, the fields in order to be formatted
config_fieldrequired The list of required fields
config_fieldexclude Fields to be excluded from the email response. This would normally be the submit button
config_securityreferer One or more IP addressesto be checked. This prevents the form from being submitted from a server that is not your own
config_file A file that holds the remaining configuration
config_databasebtable Table to hold the responses to this form
config_tracemail Used for diagnosing email problems. Values are Yes or No
config_trace Used for diagnosing non email form problems. Values are Yes or No
config_emailattachment Attached to be added to responder email. Must be in form c:\\myfilename.xxx

Configuration hidden fields
Configuration can be hidden fields in the form. For example

<input type=hidden name="config_emailaddress" value="formtest@aformh.com">
<input type=hidden name="config_emailname" value="Your Name">
<input type=hidden name="config_emailsubject" value="Form Completed">
<input type=hidden name="config_emailsystem" value="mail.aformh.com">
<input type=hidden name="config_emaildriver" value="aspmail">
<input type=hidden name="config_emailtemplate" value="">
<input type=hidden name="config_emailresponder" value="No">
<input type=hidden name="config_emailresponderfield" value="">
<input type=hidden name="config_completionurl" value="">
<input type=hidden name="config_completionlink" value="http://www.mysitexx.com">
<input type=hidden name="config_completiontext" value="Thank you for completing this form">
<input type=hidden name="config_fieldorder" value="">
<input type=hidden name="config_fieldrequired" value="firstname,lastname,email">
<input type=hidden name="config_fieldexclude" value="submit">
<input type=hidden name="config_securityreferer" value="">
<input type=hidden name="config_configfile" value="">

Configuration in a file

Configuration can stored in a file. Only one hidden field is required.
<input type=hidden name="config_configfile" value="myform.txt">

Then create a file called myform.txt and that file would look like this.

config_emailaddress="test@mysitexx.com"
config_emailname="Test Person"
config_emailsubject="Form Test"
config_emailsystem="mail.mysitexx.com"
config_emaildriver="aspmail"
config_emailtemplate=""
config_emailresponder="No"
config_emailresponderfield=""
config_completionurl=""
config_completionlink="http://www.mysitexx.com/continueform.htm"
config_completiontext="Thank you for completing this form"
config_fieldorder=""
config_fieldrequired="firstname,lastname,email"
config_fieldexclude="submit"
config_securityreferer=""
config_file=""
config_databasebtable=""
config_language="English"
config_attachment=""

 

   Download Free Version Download Free Version 

 

Download Free Version Download Documentation (PDF)

 

Buy it now Buy it Now  More Information More...