Download all three scripts by clicking here. (This is a Zip file and you will need a Zip utility to unzip it)
Test CGI on your server
If you want to find out if CGI and Perl are setup on your server, upload this
script to your cgi-bin directory. Then enter the URL of the script into your
browser - http://www.yourdomain.com/cgi-bin/i_spy.cgi.
If you get a page listing information about you and your server, then it worked.
You can try placing this script outside of the cgi-bin directory and change
the permissions to 755 and see if your server allows scripts to run outside
of the cgi-bin.
Counter
img_counter - This is a
very easy to use script that is very customizable, attractive, and easy to use.
To add the script, you create an image tag with a reference to the script.
1. Save the script to your cgi-bin directory.
2. Upload a text file to your cgi-bin directory and name it count.txt. It should
only contain the number in which you want your counter to start. For instance
if I want my counter to initially display 100, the text file would only have
the number 100 in it.
3. Add an image tag on the page that you want the counter to display on.
<IMG SRC="http://www.yourdomain.com/cgi-bin/img_counter.pl?count.txt>
The script will increase the number in the count.txt file by one everytime it is accessed.
Form Processor
Formmail - formmail is a very easy to use form processing script. It is configured by adding hidden form elements to your HTML form.
<FORM METHOD=POST ACTION="http://yourdomain.com/cgi-bin/formmail.cgi">
<INPUT TYPE="hidden" NAME="recipient" VALUE="sales@yourdomain.com">
<INPUT TYPE="hidden" NAME="subject" VALUE="New Order">
<INPUT TYPE="hidden" NAME="return_link_url" VALUE="http://yourdomain.com/">
<INPUT TYPE="hidden" NAME="return_link_title" VALUE="Go
back to homepage">
...other form elements, such as text boxes, check boxes, etc.
Replace the ACTION with the URL to the formmail script. Replace all of the VALUE's with appropriate information.
You may need to edit the script to give specific information about your server. Edit the script in a text editor with no margins. For full script instructions, click here.