Howto use forms on your website
You can get feedback from your website by creating a contact form and using FormMail without the need for any CGI scripting.
You can make you contact form in any HTML editor, you could use the free 1stPage 2000 or MS FrontPage.
You need to add the following to your HTML code form tags:
<FORM ACTION = "/cgi-sys/formmail.pl" METHOD = "POST">
- this makes formmail.pl the application that interprets the posted information from the visitor/user and assembles it in an email that is send to the specified email address. There are only a single field you have to specify to make FormMail work, the "recipient" input field. This tells FormMail where to send the email.
Please notice, that the latest version of FormMail.pl only allow that the email is send to an address that is on the same domain as the website - it is therefor no longer possible to send the email to an address at another provider (TDC, Cybercity, Get2Net, etc.).
This is because "spammers" had found a hole in this procedure that allowed them to send thousands of their unwanted emails - they could, simply by making a specially formated string, send spam via your website, with you as the sender.
The latest version of the manual for FormMail.pl can be found at http://worldwidemart.com/scripts/readme/formmail.shtml
As explained above you need as a minimum a recipient field that specifies who is to receive the form data. You do that by adding the following value:
<input name="recipient" value="address@yourdomain.com" type="hidden" />
- here you should replace "address@yourdomain.com" with the actual recipient email address.
Below is an example with a form that sends name, email and a message:
<form action="http://cgi.gpserver.dk/cgi-sys/formmail.pl" method="POST">
<input type="hidden" name="env_report" value="REMOTE_HOST,HTTP_USER_AGENT">
<input type="hidden" name="required" value="name,email">
<input type="hidden" name="print_config" value="name,email">
<input type="hidden" name="recipient" value="address@yourdomain.com">
<input type="hidden" name="redirect" value="http://www.yourdomain.com/thankyou-for-your-input.htm">
<input type="hidden" name="subject" value="Input from form">
Name: <input type="text" size="30" name="name">
Email: <input type="text" size="30" name="email">
Message: <input type="text" size="50" name="besked">
</form>

