Services Domain Names Support About Us Jobs Resellers Electric Names

 

Forms

This is a simple example of how to use forms with the Electric Names server. When you fill in the form below and click submit, the results of the form are sent to the form processing script placed in the CGI-BIN. There are many different ways you can control the output from the form, including redirection to another web page.

In the example provided below, simply input your email address and the form results will be emailed to you. This field is usually 'hidden' so all email will be sent to yourself rather than the user who is filling in the form. For a more detailed description of how to use the form script, please read through the supplied help file which gives full details of all the different fields you can use.

To use formmail on your own web site you will only need to change your HTML form, the script itself is generic. To call formmail from your own site use the following HTML as a guide:

<form action="/cgi-bin/formmail.pl" method=post>

Your Name: <input type=text name="realname" size=20>

Your Email: <input type=text name="email" size=20>

URL: <input type=text name="URL" size=20>

Tel: <input type=text name="tel" size=20>

<input type="HIDDEN" name="subject" value="Enquiry Form">

<input type="HIDDEN" name="recipient" value="yourrecipient@yourdomain.com">

NOTE: You must let us know what this recipient email address is so we can add it to our list of approved recipients (prevents spammers misusing the system)

<input type="HIDDEN" name="redirect" value="http://www.yourdomain.com/thanks.htm">

Use the following line if you have any mandatory fields. Separate fieldnames with a comma. No gaps.

<input type="HIDDEN" name="required" value="URL,email">

Use the following line if you want the fields sorted when the form arrives in the recipient's mail. Separate fieldnames with a comma. No gaps. Don't need to include email or realname fields. Include all others.

<input type="HIDDEN" name="sort" value=",tel,URL">

<input type=submit value=Send>

</form>