|
|||
|
|
|||
|
|
cgi form mail exampleThe form mail script collects the data submitted in a form, (optionally) formats it, and sends it to one or more email addresses. For more information on form mail scripts and a list of free form mail scripts see Some form mail script examples.This page explains the usage of Perl based, NMS FormMail. Using the form mail scriptThis guide takes you step by step through creating a form and getting the form submissions by email.Step 1: Download the form mail scriptDownload the script from http://nms-cgi.sourceforge.net/scripts.shtml Download the TFMail package from the page and unzip it.Step 2: Modify the scriptNow you have to modify the script that you had downloaded in step 1. Open the TFMail.pl in a text editor and update the script. Instead of 'johnd' it will be your user name. Depending on your hosting account, the actual path can vary.Note: Important! do not put the configuration files in a location that could be accessed from the web.
Step 3: Update the configuration fileopen the default.trc file (from the downloaded files in step 1) save it as say, feedback.trcEdit feedback.trc and change recipient to your email address.
Step 4: Upload the files
Note: Important! do not put the configuration files in a location that could be accessed from the web.
Step 5: Create the formUse an HTML editor to create the form The code for a sample form is given below:
<form name='feedback' method='POST'
Upload the page containing the form also to the web server Step 6: Test the form!Open the form page and submit some sample data.
Related pages |
| Copyright © 2008 html-form-guide.com . All rights reserved. | ||||