Knowledgebase
Intelligent Hosting Support > Help Desk > Knowledgebase

Search help:


Using the Form Mail Script

Solution

Before you use the form mail script we provide you will need to contact support@intelligenthosting.com to get security authorization for the script. You should be familiar with the HTML required to create Web-based forms, or have website-building software like Dreamweaver or FrontPage that can create the form for you.

After your domain has been added to the authorized-user list for the form mail script, you are ready to edit your HTML code. You should configure your form to submit to the following address:

http://formmail.intelligenthosting.net/cgi-bin/formmail.cgi

You should normally use "POST" as the "action" when submitting forms. With this in mind, your full HTML form tag should look like this:

<form method="POST" action="http://formmail.intelligenthosting.net/cgi-bin/formmail.cgi">

There is only one required parameter for the form mail script, and that is the tag which specifies the recipient e-mail address for the form. You will need to create a "hidden" form field named "recipient"; you can put this anywhere inside your <form> </form> tags you wish. If your domain name is "example.com" and the e-mail address you want to submit to is "webmaster@example.com", the HTML tag would look like this:

<input type="hidden" name="recipient" value="webmaster@example.com">

Complete details on all of the configuration options for the form mail script are available at the following address: http://www.scriptarchive.com/readme/formmail.html#form_config.

As you can see if you visit the above Web page, you can create some fairly complex actions using "hidden" form tags. One particularly useful tag is the "redirect" option, which lets you specify a Web page of your own creation with a "thank you" message after the form is submitted. The nice thing about the form mail script we use is that, other than the "recipient" tag, you don't need to specify any configuration options if you don't want to; the script is smart enough to figure out what your form is submitting and even generate a generic "thank you" page.

 
Was this article helpful? yes / no
Related articles Custom Error Pages
Can I place an order or update my credit card over the phone?
Control Panel Overview
Article details
Article ID: 5
Category: General Information
Rating (Votes): Article rated 3.7/5.0 (69)

 
« Go back