Compulink Information eXchange, 1 Sundial Court, Tolworth Rise South, Surbiton, Surrey, England. KT5 9RN Sales +44 (0) 181 255 5050 Fax +44 (0) 181 255 5101 |
This page describes how to create the HTML code for form-to-mail processing using the script located at http://www.cix.co.uk/cgi-bin/formmailplus.pl. This is an enhanced replacement for the old formmail scripts.
Sample HTML is located near the bottom of this page.
A Sample Form is located at the bottom of this page.
recipient email address
subject line of the message
email address of the sender
realname of the sender
redirect address for successfully submitted forms
required to be filled fields go in here
missing_fields_redirect address for submitted forms with missing data
env_report specifies any of these three env's to include in the email
print_blank_fields in the email message
<form action="http://www.cix.co.uk/cgi-bin/formmailplus.pl" method=post>
<input type=hidden name="recipient" value="webmaster@cix.co.uk">
<strong>Subject of your email</strong><br>
<input type=text name="subject">
<strong>Your email address</strong><br>
<input type=text name="email">
<strong>Your real name</strong><br>
<input type=text name="realname">
<input type=hidden name="redirect" value="http://go.here.when.done/file.html">
<input type=hidden name="required" value="email,subject,realname">
<input type=hidden name="missing_fields_redirect" value="http://go.here.if.some.fields.are.blank/file.html">
<input type=hidden name="env_report" value="REMOTE_HOST, REMOTE_ADDR, HTTP_USER_AGENT">
<input type=hidden name="print_blank_fields" value="1">
<H2>Feedback data</H2>
Are you male
<INPUT TYPE="radio" NAME="mailorfemale" VALUE="Male">
or female
<INPUT TYPE="radio" NAME="mailorfemale" VALUE="Female">
click here
<INPUT TYPE="radio" NAME="mailorfemale" VALUE="Erm?" CHECKED>
if you dont know.
<P>
Please enter any other comments here.<br>
<TEXTAREA NAME="Comments" ROWS=10 COLS=50></TEXTAREA><P>
<INPUT TYPE="submit" VALUE="Submit details for processing"><P>
</body></html>