How To Configure Your HTML


HOW TO CALL THE SCRIPT

The following line should be included as below to call our script which processes your form

<FORM method=POST action="http://www.personal.u-net.com/cgi-bin/formmail.pl"> - this is the same for everyone.

HOW TO SPECIFY THE RECIPIENT OF THE EMAIL
The following should be configured to send the results to your email address

<INPUT TYPE="hidden" name="recipient" value="me@myplace.u-net.com">

HOW TO GIVE THE EMAIL A SUBJECT
Below you should fill in the subject that the email should have when you receive it

<INPUT TYPE="hidden" name="subject" value="Order from my customer">

HOW TO SPECIFY YOUR OWN SUBMISSION RESPONSE
The next line will redirect to a thank you page of your choice - if you do not include this you will get the standard thank you greeting with a summary of the details sent.

<INPUT TYPE="HIDDEN" NAME="redirect" VALUE="http://{domain}/{dir}/{mythankspage.htm}">

another option is available for this field which will allow the user to specify the url that they want to go to after they have filled in the form

<INPUT TYPE="text" name="redirect" >

HOW TO CUSTOMIZE THE DEFAULT SUBMISSION RESPONSE
If you decide to use the default thank you page you will need to use the following 4 fields - the first gives the default thanks page a title

<INPUT TYPE="hidden" name="title" value="Your thankyou page name">

the below gives a link from the thankyou page to a page of your choice

<INPUT TYPE="hidden" name="return_link_url" value="http://{yourdomain}/{yourpage}">

and this will specify the text displayed for this link.

<INPUT TYPE="hidden" name="return_link_title" value="Back to main page.">

you can also set a background for the default thankyoupage

<INPUT TYPE="hidden" name="background" value="http://{yourdomain}/my.gif">

or a background colour for this default thank you page

<INPUT TYPE="hidden" name="bgcolor" value="#FFFFFF">

you can alter the text colour

<INPUT TYPE="hidden" name="text_color" value="#000000">

and the link colour

<INPUT TYPE="hidden" name="link_color" value="#FF0000">

as well as the visited link colour

<INPUT TYPE="hidden" name="vlink_color" value="#0000FF">

and the active link colour

<INPUT TYPE="hidden" name="alink_color" value="#0000FF">

HOW TO MAKE CERTAIN FIELDS COMPULSORY
To make sure that certain parts of your form are filled in put in the following line

<INPUT TYPE="hidden" name="required" value="email,phone,{another field on my form}">

HOW TO RETURN FORM FIELDS IN A CERTAIN ORDER
You may sort the fields in the return email alphabetically

<INPUT TYPE="hidden" name="sort" value="alphabetic">

or in a specific order

<INPUT TYPE="hidden" name="sort" value="order:field1,field2,field3">

HOW TO CUSTOMIZE THE EMAIL HEADER
Include the below tag for the email address of the person - it will then be placed in the from field of the email you receive.

<INPUT TYPE="text" name="email" >

Include the below tag to have the persons name included in the from tag

<INPUT TYPE="text" name="realname" >

Alternatively, you can download your own version of the script from here

Go back to Previous Page