CYBERAXIS
Please Login or Register

Knowledgebase

CGI Email

There is an online guide at : http://web.mit.edu/wwwdev/cgiemail/user.html 

This is additional information to summarize the key points.

 The text file should be like <below> and uploaded to  'public_html/cgi-bin/'    folder

To: strangeman@chasm.big                       
Subject: questions three

What is your name? [yourname]
What is your favourite colour? [colour]
In one sense, this template is free-form. People who want to send you e-mail can download this template, fill it out, and mail it to you. However, the template will also be used by the cgiemail program, so before you upload the file to your WWW server, be careful to follow these guidelines:

 

  1. Wherever you want the user of your form to supply information, use a single word inside square brackets with no spaces, e.g. Your name: [yourname]. Not [Put your name here].
  2. Make sure the address in the To: field is correct.
  3. If there are blank lines among the header lines, remove them.
  4. If there are blank lines before the header lines, remove them.
  5. Make sure all your header lines are valid. The first character on the line must be a letter. Most information should go in the message body; don't make up your own headers.
  6. Make sure there is a blank line between the header lines and the body.
  7. Make sure you save it as ASCII text. For example, if you are using Microsoft Word, use "Save As" and choose "Text Only with Line Breaks."
  8. If you created the file on a Mac, be sure to upload it as text, i.e. CR's translated. (Unix computers have different codes denoting the end of a line than Mac's do, so your file might look like one long line to the Unix computer.)

 

Secondly, An example of the form would be (my text file is named cgitest.txt) :

<FORM METHOD="POST"
 ACTION="/cgi-bin/cgiemail/cgi-bin/cgitest.txt">

Your e-mail address: <INPUT type="text" NAME="email"><p>
Your name: <INPUT type="text" NAME="yourname"><p>
Your favourite colour: <INPUT type="text" NAME="colour"><p>
<INPUT TYPE="submit" value="Send e-mail">
</FORM>

That's it. 

You are already done.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search