Title
Title
Description
Description
/

Contact Forms

 

How to use TAGnet's contact form if your site is TAGnet hosted.

CGI Scripts

Letting customers write their own CGI scripts is an open invitation to hackers who try to break into hosting services. That is probably why TAGnet does not allow home made CGI scripts. There are several CGI scripts hosted by TAGnet which you can use, including TAGnet's cgiemail script which is explained on this page. The following examples work if your site is hosted by TAGnet.

 

Text File

Use a simple text editor (e.g. Notepad) to create a file named Contact.txt and place the following text in the file:

    From: [email]
To: MyName@MySite.org
Subject: Contact Message
[message]

 

Place this file in the home folder (i.e. root directory) of your site.

 

HTML Code

Place the following HTML code on the web page destined to feature the contact form:

    <FORM METHOD="POST" ACTION="/cgi-bin/cgiemail/Contact.txt">
Your e-mail address: <INPUT TYPE="text" NAME="email" SIZE="30">
Comments: <TEXTAREA NAME="message" ROWS=3 COLS=55
WRAP="physical"></TEXTAREA>
<INPUT TYPE="submit" VALUE="Submit Comment">
<INPUT TYPE="reset" VALUE="Start Over">
</FORM>

 

Changes

You can change any of the color highlighted text as long as the spelling matches.

You can add more entry boxes with a little copy, paste and edit (it helps to know basic HTML).

You can add a table or two in order to better control the presentation and background coloring.

Lets say you want to move the Contact.txt file to a folder called Forms. Then change
   ACTION="/cgi-bin/cgiemail/Contact.txt"
to
   ACTION="/cgi-bin/cgiemail/Forms/Contact.txt"

 

TAGnet Listed Site

The above HTML code example works if your site has it's own domain. Here is what you do if your site is as an extension of TAGnet's domain (e.g. "http://tagnet.org/MySite")?  The ACTION entry will look like this:
   ACTION="/cgi-bin/cgiemail/MySite/Contact.txt"
and if you want to put the text file in the Forms folder then change it to:
   ACTION="/cgi-bin/cgiemail/MySite/Forms/Contact.txt"

 

Other Scripts

Other CGI scripts are available at TAGnet Support