Web Hosting Web Hosting
Home
Web Hosting
Email Hosting
Domain Names
Colocation
Dedicated Servers
E-commerce
Resellers
Client Services
  Technical Support
  Glossary
  Webmail
Control Panel
Buy Now!
Contact Us
Feedback
Help
 

Formmail.cgi FAQ

What html code will I need to use?

You will need to insert the following html code into your pages:

<H3>Feedback Form</H3>
<form method=POST action="http://www.cia.com.au/cgi-bin/formmail.cgi">
<input type=hidden name="recipient" value="your_login_name@cia.com.au">
<input type=hidden name="subject" value="Whatever Subject You Wish">
<input type=hidden name="redirect"
value="http://www.yourcompany.com.au/optional_reply.html">

Your Name: <input type=text size=40 name=realname> <BR>
Your Email Address: <input type=text size=40 name=email> <BR>
Country:
<SELECT name="Country">
<option value="Australia">Australia</option>
<option value="USA">USA</option>
<option value="UK">UK</option>
<option value="Other">Other</option>
</select> <BR>
Comments:
<BR>
<TEXTAREA name="Comments" cols=40 rows=5></TEXTAREA>

<INPUT type=submit value="Submit">
<INPUT type=reset value="Reset">
</form>

Notes:

  • The path to the formmail script is http://www.cia.com.au/cgi-bin/formmail.cgi not http://www.yourdomain.com.au/cgi-bin/formmail.cgi.
  • The recipient value is your email address. Please change this to your email address.
  • The subject you can change to whatever subject you like.
  • The "redirect" value is totally optional. You can either put the url of a file that you wish to display after the form is submitted, or leave the whole line out completely and the results of the form will be displayed on screen.
  • The middle section above is optional: you can put whatever fields you like in your form. However for the first two fields you should try to keep "realname" and "email" as the names for the values so that you will be able to see who the form is from and reply to them easily.


What will the form look like?

The above html code will give you a form that looks like this:

Feedback Form

Your Name:
Your Email Address:
Country:
Comments:

What will be emailed to me?


From www@w6.cia.com.au Mon Apr 27 19:10:39 1998
Return-Path: <www@w6.cia.com.au>
Received: from w6.cia.com.au (w6 [203.17.36.14])
by cia.net.au (8.8.8/8.8.6) with ESMTP id TAA09204
for <support@host1.com.au>; Mon, 27 Apr 1998
19:10:39 +1000
Received: (from www@localhost) by w6.cia.com.au (8.7.5/8.7.3)
id TAA02872; Mon, 27 Apr 1998 19:13:14 +1000
Date: Mon, 27 Apr 1998 19:13:14 +1000
Message-Id: <199804270913.TAA02872@w6.cia.com.au>
To: your_login_name@cia.com.au
From: fred@isp.com.au (My name!)
Subject: Whatever subject you wish
Status: RO
X-Status:

Below is the result of your feedback form. It was
submitted by My name! (fred@isp.com.au) on Mon Apr 27
19:13:14 EST 1998
---------------------------------------------------------
Country: Australia
____________________________________________

Comments: This is the comments field. Whatever was
typed into that box will end up here.
____________________________________________

SERVER_SOFTWARE = Apache/1.2.5
GATEWAY_INTERFACE = CGI/1.1
DOCUMENT_ROOT = /www/db
REMOTE_ADDR = 203.17.36.1
SERVER_PROTOCOL = HTTP/1.0
REQUEST_METHOD = POST
REMOTE_HOST = 203.17.36.1
QUERY_STRING =
HTTP_USER_AGENT = Mozilla/3.0Gold (Win95; I)
PATH = /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:
/usr/sbin:/sbin:/usr/X11/bin:/usr/andrew/bin:
/usr/openwin/bin:/usr/games:.
HTTP_CONNECTION = Keep-Alive
HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, */*
REMOTE_PORT = 3951
SCRIPT_NAME = /cgi-bin/formmail.cgi
SCRIPT_FILENAME = /www/db/cgi-bin/formmail.cgi
SERVER_NAME = www.cia.com.au
REQUEST_URI = /cgi-bin/formmail.cgi
HTTP_COOKIE = RMID=d208e00335389820
SERVER_PORT = 80
CONTENT_LENGTH = 190
CONTENT_TYPE = application/x-www-form-urlencoded
HTTP_HOST = www.cia.com.au
SERVER_ADMIN = webmaster@cia.com.au


Note that everything after the comments fields are environment variables of the remote system (as well as some local stuff) so you can see what domains people are accessing your forms from. Not very interesting to most people but interesting for some.

 



Tell a Friend about Host1!

 
     
Home | Contact Us | Feedback | Sign Up Now! | Client Services | Control Panel | Help | Terms of Use | More Info
Web Hosting Australia | CIA Group | ADSL | Enetica Domain Name Registration
deus ex machina ©2000-04 Host1 ACN 003 737 040. All rights reserved
 
Sign up now
 

Member Logins:
Control Panel
Webmail
Resellers

Search:



What's SmartHost?