CGIemail:
CGIemail is a html form processor. To use CGIemail you must use the following line:
This code calls the presinstalled script cgiemail which is in the server's cgi-bin directory once the web page visitor clicks the "submit" button. The script cgiemail in turn calls a text file (or template) called mailform.txt. The template defines the format by which the submitted form content is to be sent via email.
You can create the mailform.txt template in a basic text editor beginning with the following two lines:
To: username@yourdomain.com
Subject: Information Request
Substitute the desired recipient email address and subject above. Next, you will need to add ALL field names within the HTML form to the template in a form similar to the following:
To: username@yourdomain.com
Subject: Information Request
Name [name]
Address [address]
Phone [telno]
As long as each form field name is contained within brackets ("[ ]") within the template, the email should be sent successfully and contain all submitted data. We suggest you use all lowercase field names within your HTML form and template. If you want a specific web page to load when the email is successfully sent, such as a thank you note, add the follow code to your HTML form:
<input type="hidden" name="success" value="http://your_domain.com/thanks.html">
Substitute the URL of the file you wish to load after form data is submitted. The field name in this case MUST be "success", but does not need to be added to the template.
<form method="post" action="http://YOURDOMAIN/cgi-bin/webform.cgi">
<input type="hidden" name="recipient" value="abcdefg@xyz.com">
<input type="hidden" name="redirect" value="http://YOURDOMAIN/thanks.htm">
<input type="hidden" name="subject" value="Form
Submission">
Replace YOURDOMAIN with your account's domain name.
Replace abcdefg@xyz.com with your email address
(form data will go there).
Replace thanks.htm with your success page.
The user will be taken there after he presses submit.
Replace Form Submission with the desired subject
line of your email.
Suppose you need a counter for the following page:
My page http://mydomain.com/index.html
<img src="http://mydomain.com/cgi-bin/nph-count2?width=5&link=http://mydomain.com/index.html">
OK, what about my page at http://mydomain.com/somewhere/else.html?
<img src="http://mydomain.com/cgi-bin/nph-count2?width=5&link=http://mydomain.com/somewhere/else.html">
It's that easy.
Note: to alter or reset your counter's number alter the counter_file file which will be located in your root directory. Change the number at the end of the line which corresponds to the counter you want to change or reset.
OK, What If I'm Using Miscrosoft Frontpage?
1. Open the page with the FP editor, place the cursor where you want the counter.
2. =>Insert => HTML Markup => (insert the counter script) => OK => save file, Done.
BTW, It won't work with the FP editor, you will have to view it with your default browser.