Cloch Internet Logo

Hosting  Domains Services
<Domain Registration>
<Website Hosting>
<Web Application Development>
Horizontal Bar
transparent
  Navigation
Home  Home
bloch  Blog
about  About
services  Services
hosting  Hosting
backup  ClochBackup
domains  Domains
contact  Contact Us
news  News

  Domain Names
.

Support & Assistance: Formmail Script

One of the most common requests we have is for help in creating a form to email script.

As part of our standard service, we provide a script called Jack's Formmail.php.

1) Installing Jack's Formmail
Log into your control panel and click on the "Power Tools" link on the left hand side. Select Jack's Formmail and follow the instructions to install it. There is no need to change the default settings unless you have good reason to.

2) Demo Script
This will have installed the Formmail script in the formmail directory on your site. So, if your domain name was domainname.ie, the location of the formmail directory would be http://www.yourdomainname.ie/formmail/.

A sample script will have also been placed in this directory, and this will be located at http://www.yourdomainname.ie/formmail/demo_html.html.

3) Form Elements

You can add any fields you wish to your form such as name, address, email etc. The only required field that you must have in your form is the action and recpient fields (see below).

- Action Tag
The form action must be set correctly to send the form to the formmail.php script. Therefore, if your form is located below the formmail directory (www.yourdomainname.ie/contactform.html for example) the form action would be set as follows:
<form method="post" enctype="multipart/form-data" action="formmail/formmail.php">

- Recipient Tag
Another essential element is the recipient tag. This is the email address that the form contents will be sent to. It must be an address at your domain name (eg: it cannot be your eircom or hotmail address). Sample below:
<input type="hidden" name="recipient" value="info@yourdomainname.ie">

- Redirect Tag
The redirect tag will bring the user to the specified page once the form has been submitted. This will usually be a page thanking them and informing them that you will get back to them in due course.
<input type=hidden name="redirect" value="http://www.yourdomainname.ie/thankyou.html">

4) Further Assistance
Full documentation on the Formmail script is available at the following location:
http://www.dtheatre.com/scripts/formmail_doc.php

 
  Support Centre
control panel  Help Files
Trouble Ticket  Trouble Ticket
System Status  Systems Status
 

  Client Login
Email:
Password:


Forgot your password?


 
horizontal bar

TSG Ltd.,
14 Penrose Wharf, Cork
Tel: +353 21 4861499, Fax: +353 21 4861303, Email: sales@tsg.ie
  |  Privacy Policy   |   Terms & Conditions  |  

horizontal bar

Copyright © 2003-2007 TSG Ltd
transparent
transparent
Valid HTML 4.0!