|
Add Web Forms
Adding web based
forms can be done using a few hidden fields in your html form.
Here are the steps for configuring your form. (Please note if
you are using FrontPage, forms support is included with
FrontPage. Please see your FrontPage manual for details.)
This page
may scroll with monitors set to less than 800 x 600 pixels to
simplify copying of form lines.
Required
Fields:
1) Set form action to:
<form action="/cgi-scripts/formmail.pl" method="POST">
2) Set form recipient to:
<input type=hidden name="recipient" value="email@your_email.com">
Replace email@your_email.com with the correct
email address the form data should be emailed to.
Optional
Fields:
1) If you wish to choose what the email
form data subject is:
<input type=hidden name="subject" value="Your Subject">
Replace Your Subject with the subject you wish
to use.
2) This form field will allow the user
to specify their return e-mail address.
<input type=text name="email">
3) The realname form field will allow
the user to input their real name.
<input type=text name="realname">
4) To add a custom return page after the
form is submitted.
<input type=hidden name="redirect" value="http://domain.com/file.html">
Replace http://domain.com/file.htm with the
correct path to your return page file.
5) If you want to require that users
complete specific form fields add:
<input type=hidden name="required" value="email,phone,...">
Replace email,phone,... with the field names
that should be required.
6) This will allow you to add a return
to page if required fields are not complete.
<input type=hidden
name="missing_fields_redirect"
value="http://domain.com/error.html">
Replace http://domain.com/error.html with the
URL of the error page you wish to display.
7) To sort by a set field order:
<input type=hidden name="sort" value="order:name1,name2,etc...">
Replace name1,name2,etc... with the filed names
in the order you want them to be displayed in the returned
email.
8) If you want to print all blank
fields:
<input type=hidden name="print_blank_fields" value="1">
Add this line if you want blank (uncompleted)
form field names to be sent back in the email response.
##############################################################################
# FormMail Version 1.6 #
# Copyright 1996-1997 Matt Wright mattw@worldwidemart.com #
# Created 06/09/95 Last Modified 05/02/97 #
# Matt's Script Archive, Inc.: http://www.worldwidemart.com/scripts/ #
##############################################################################
# If you run into any problems while trying to configure this scripts, help #
# is available. The steps you should take to get the fastest results, are: #
# 1) Read this file thoroughly. #
# 2) Consult the Matt's Script Archive Frequently Asked Questions: #
# http://www.worldwidemart.com/scripts/faq/ #
# 3) If you are still having difficulty installing this script, send #
# e-mail to: scripts-help@tahoenet.com #
# Include any error messages you are receiving and as much detail #
# as you can so we can spot your problem. Also include the variable#
# configuration block that is located at the top of the script. #
# #
# Hopefully we will be able to help you solve your problems. Thank you. #
##############################################################################
# COPYRIGHT NOTICE #
# Copyright 1995 - 1997 Matthew M. Wright All Rights Reserved. #
# #
# FormMail may be used and modified free of charge by anyone so long as this #
# copyright notice and the comments above remain intact. By using this #
# code you agree to indemnify Matthew M. Wright from any liability that #
# might arise from its use. #
# #
# Selling the code for this program without prior written consent is #
# expressly forbidden. In other words, please ask first before you try and #
# make money off of my program. #
# #
# Obtain permission before redistributing this software over the Internet or #
# in any other medium. In all cases copyright and header must remain intact #
#############################################################################
|