Setting Up Forms with Dreamweaver and FormMail

Setting up forms on your site involves creating a form within your XHTML or HTML page and adding a CGI script to the server. Web design programs like Dreamweaver have detailed help files and tutorials on form creation. Please refer to these for more information.

Here are some online resources:
Creating a form with Dreamweaver MX: http://www.webthang.co.uk/tuts/tuts_dmx04/newbie_4/dmx04_4_1.asp
Creating a form with HTML: http://www.htmlgoodies.com/tutors/forms.html

Once you have created a form on your XHTML or HTML page you need to setup a script to process the form and send you the results. The form processing script we allow on our servers is nms FormMail which comes from this site: http://nms-cgi.sourceforge.net/. This script is the most current and secure script available.

Please follow these steps to get your form setup:
1. You will need to configure the XHTML or HTML on your page with the appropriate settings. Please view/source on this page for an example: www.prattsystems.com/callback.htm

XHTML

Following is the relevant code from the callback page in XHTML format with the necessary code in red, custom options in blue and notes in green. Just replace www.prattsystems.com with your domain name and enter your specific custom options:
<form name="Callback" id="Callback" method="post" action="http://www.prattsystems.com/cgi-bin/FormMail.pl"> (Replace prattsystems.com with your domain name.)
<input type="hidden" name="subject" value="Toll-Free Callback" />
<input type="hidden" name="title" value="Toll-Free Callback" />
<input type="hidden" name="required" value="call_type, name, telephone, e_mail" />
(Note that each required value refers to a specific form field name.)
<input type="hidden" name="redirect" value="http://www.prattsystems.com/contact.htm" /> (This is the URL where the visitor will be taken after submitting the form.)

HTML

Following is the relevant code from the callback page in HTML format with the necessary code in red, custom options in blue and notes in green. Just replace www.prattsystems.com with your domain name and enter your specific custom options:
<form name="Hosting Fulfillment" method="post" action="http://www.prattsystems.com/cgi-bin/FormMail.pl"> (Replace prattsystems.com with your domain name.)
<input type=hidden name="subject" value="Toll-Free Callback">
<input type=hidden name="title" value="Toll-Free Callback">
<input type=hidden name="required" value="call_type, realname, telephone, email">
(Note that each required value refers to a specific form field name.)
<input type=hidden name="redirect" value="http://www.prattsystems.com/contact.htm"> (This is the URL where the visitor will be taken after submitting the form.)

2. Configure the FormMail script and upload to your cgi-bin directory in ASCII mode. The FormMail script we support on our servers is called nms FormMail. This is the most current and secure version of FormMail. You can download it here: http://nms-cgi.sourceforge.net/scripts.shtml

3. Change permissions on the FormMail script to 755.

nms FormMail Notes:

1. Very important: @allow_mail_to line defines where the form results will be sent. You do not need to have a recipients line within the form page. This prevents e-mail address harvesting by spammers.

2. Use realname for name field and email for e-mail address field to have the form sent to you from the submitters name and e-mail address.

This will draw the name and e-mail from the form results and place them in the from area of the form results e-mail message.

Form Configuration Support

Support with form page setup and FormMail configuration is available for a one-time fee of $30. Make a payment below to get support.

 
 
 

Copyright © 2010, Pratt Systems. All rights reserved worldwide.

Site Map