LocalNet
  • Start Page|
  • My Account|
  • Webmail|
  • Help
  • Top Stories
  • US News
  • International
  • Sports
  • Entertainment
  • Business / Finance
  • Health
  • Science
  • Technology
  • Offbeat News
New
LocalNet
Webmail!
High Speed DSL. As Low as $19.95 per month, click to learn more!
Customer Support Center
answers, tutorials, and software downloads
FormMail Command List

This page contains a comprehensive list of all the fields that may be used to customize the FormMail script.

  • recipient (required)
  • subject
  • email
  • realname
  • sort
  • redirect
  • required
  • env_report
  • title
  • return_link_url
  • return_link_title
  • background
  • bgcolor
  • text_color
  • link_color
  • vlink_color
  • alink_color

recipient (required) top of page

Allows you to specify where the form results are emailed. The recipient must be an address in the localnet.com domain. The formmail script rejects all other recipient addresses.

<input type="hidden" name="recipient" value="your_username@localnet.com" />

subject top of page

Allows you to specify the email subject that is sent after the form has been submitted. Not using this field option will result in the default subject "WWW Form Submission".

Preset Subject:   <input type="hidden" name="subject" value="Your Subject" />
User-defined Subject:   <input type="text" name="subject" />

email top of page

Allows the user to specify their return e-mail address. Necessary if you want to be able to return e-mail to the user. This will be put into the "From" field of the e-mail you receive.

<input type="text" name="email" />

realname top of page

Allows the user to input their real name. This field is useful for identification purposes and will also be put into the "From" line of the e-mail.

<input type="text" name="realname" />

sort top of page

Allows you to choose the order in which variables appear in the e-mail that you receive. Options include alphabetically or specified orders. The default order is what the browser sends to the script (which isn't always the exact same order that appears on the screen).

To sort alphabetically:   <input type="hidden" name="sort" value="alphabetic" />
To sort by a set field order:   <input type="hidden" name="sort" value="order:name1,name2,etc..." />

redirect top of page

If you wish to redirect the user to a different URL, rather than having them see the default response to the fill-out form, you can use this hidden variable to send them to a pre-made HTML page.

For preset redirect page:   <input type="hidden" name="redirect" value="your_redirect_page.html" />
For user-defined redirect page:   <input type="text" name="redirect" />

required top of page

You can require certain fields to be filled in before the user can successfully submit the form. Simply place all field names that you want to be mandatory into this field. If the required fields are not filled in, the user will be notified of what they need to fill in, and a link back to the form they just submitted will be provided.

<input type="hidden" name="required" value="field1,field2,etc" />

env_report top of page

Allows you to recieve information about the user's environment. The following is a short list of valid environment variables that might be useful:
  • REMOTE_HOST - Sends the hostname making a request.
  • REMOTE_ADDR - Sends the IP address of the remote host making the request.
  • HTTP_USER_AGENT - Sends info about the browser used to send the request.
    General format: software/version library/version

<input type="hidden" name="env_report" value="REMOTE_HOST,HTTP_USER_AGENT,etc" />

title top of page

Allows you to specify the title and header that will appear on the results page (use if you do not specify a redirect URL).

<input type="hidden" name="title" value="Your Title Here" />

return_link_url top of page

Allows you to specify a URL (appears as return_link_title) that the user may click to once at the results page (not used if you have the redirect field set).

<input type="hidden" name="return_link_url" value="clickable_url.html" />

return_link_title top of page

This is the title that will be used to link the user back to the page you specify with return_link_url.

<input type="hidden" name="return_link_title" value="Back to Main Page" />

background top of page

Allows you to specify a background image that will appear on the results page (not used if you have the redirect field set).

<input type="hidden" name="background" value="your_image.gif" />

bgcolor top of page

Allows you to specify a background color for the form results page (not used if you have the redirect field set).

White Background:   <input type="hidden" name="bgcolor" value="#ffffff" />

text_color top of page

This field works in the same way as bgcolor, except that it will change the color of your text.

Black Text:   <input type="hidden" name="text_color" value="#000000" />

link_color top of page

Changes the color of links on the results page (not used if you have the redirect field set).

Link Color of Red:   <input type="hidden" name="link_color" value="#FF0000" />

vlink_color top of page

Changes the color of visited links on the results page (not used if you have the redirect field set).

Visited Link Color of Blue:   <input type="hidden" name="vlink_color" value="#0000FF" />

alink_color top of page

Changes the color of active links on the results page (not used if you have the redirect field set).

Active Link Color of Blue:   <input type="hidden" name="alink_color" value="#0000FF" />

Additional Help:
  • Using the FormMail Script
  • FormMail Examples
  • Web Form Creation (W3Schools)
News content provided by the Associated Press. Weather content provided by AccuWeather
© 1994-2025 LocalNet Corp. All Rights Reserved