| The visitor response form script
on the ROCKMM Web servers is called 'Formmail', this works using a
system known as CGI, and is in the form directory off the main
cgi-bin directory. The formmail script only works on UNIX servers.
Once the page is set-up your users will be to send you messages or
requests to you using a form which will automatically email you any
completed forms.
To use the script, you will need to create an HTML form with the
following lines included as the main part of the form:
<form action="/cgi-bin/form/formmail.pl"
method="POST" name="The name of the form">
This tells the browser which script to run and how to pass the
data to it. The contents of the 'name' field is just a title by
which the form will be known
<input type="hidden" name="email"
value="web-form@your-company.co.uk">
This will provide the email response with a 'from' address.
<input type="hidden" name="realname"
value="Your name">
This line gives the email in the 'from' line a more meaningful
name. Both this and the previous line are unimportant and only
really here to allow you to keep track of the responses.
<input type="hidden" name="recipient"
value="your-name@your-company.co.uk">
Very important - you should set this to your email address so the
data can be sent to you.
<input type="hidden" name="redirect"
value="http://www.your.co.uk/thanks.htm">
Very important - you should set this to full address of the next
page, which should usually be a thank you page.
<input type="hidden" name="subject"
value="whatever">
This helps you to identify which page the information was sent
from by placing a message in the subject of the email.
</form>
This signifies the end of the form.
Once you have the basic tags outlined above you can then add your
form fields, you only need to keep in mind that everything for the
form must be in between the opening and closing form brackets.
Another line you may wish to add to your form will sort the data
being sent back to you into the order you want, without this line
the data will appear in a random order. Just add the following line:
<input type="hidden" name="sort"
value="order:name_of_field1,name_of_field2,etc...">
Or you can use
<input type="hidden" name="sort"
value="alphabetic">
In the first example the value field should contain the word
'order' followed by a colon and then the names of the fields of the
form (the name in each <input type=" " name="
" value=" "> of the form).
|