USFamily.Net

Connecting families, communities and businesses for over 7 years

usa.gif (12791 bytes)

  HOME HELP CONTACT US

  WEBMAIL MY ACCOUNT USE POLICY

 
Internet Services


Dial-up
DSL
------------------------
E-mail
Web Hosting
------------------------
Support
My Account
------------------------
Computer Care
------------------------
Search The Web


 Search Help

 
Web Hosting > Web Hosting
CGI Information for Personal Sites

This article details some of the CGI scripts that are available to users with a personal website through USFamily.Net . This article does not apply to business class hosting customers. The following scripts are covered:

Hit Counter
To add a counter to a page the name of the page must end with .shtml instead of .html. (i.e. index.shtml instead of index.html.) This notifies the web server to look for cgi commands in the web page.

Basic Text Counter
Add the following command line in your html text wherever you want the text counter to display.

<!--#exec cgi="/cgi-bin/counter.cgi" -->

Basic Image Counter
Add this command line in your html text wherever you want the image counter to display.

<!--#exec cgi="/cgi-bin/counter.cgi?&i" -->

You must have these or other images with the names 0.gif,1.gif through 9,gif in your web directory.

0.gif (664 bytes) 1.gif (640 bytes) 2.gif (664 bytes) 3.gif (664 bytes) 4.gif (664 bytes) 5.gif (664 bytes) 6.gif (664 bytes) 7.gif (664 bytes) 8.gif (664 bytes) 9.gif (664 bytes)

Invisible Counter
Add this command line in your html text wherever you want the image counter to be counting but not display. You will then display the counter on another page only you look at.

Image version:
<!--#exec cgi="/cgi-bin/counter.cgi?i&i" -->

Character version:
<!--#exec cgi="/cgi-bin/counter.cgi?i&" -->

To display the counter on another page, add this command line in your html text.

Image version:
<!--#exec cgi="/cgi-bin/counter.cgi?d&i" -->

Character version:
<!--#exec cgi="/cgi-bin/counter.cgi?d&" -->

Multiple Counters
The count is stored in counter.txt in your web directory. You may have multiple counters by specifying a different counter name in parameter 3.

Example of image version display of counter named p17
<!--#exec cgi="/cgi-bin/counter.cgi?d&i&p17" -->

Advanced Options
There are 3 parameters passable to the counter: the format is ?parameter1¶meter2¶meter3. The follow is a list of the available options:

parameter 1: blank = increment and display
i = invisible counter
d = display only counter
parameter 2: blank = charter display
i = image display
parameter 3: xxxxx = alternate counter name

Input Forms
This is a sample input form, the contents of which are emailed back to you. The hidden field controls where the email is to be returned to (such as your email address).

<input type="hidden" name="mailto" value="example@usfamily.Net">
For security reasons you must contact us to request to have the email address you use for this form to be added to our trusted address list.

The other key element in the form is the cgi call in the form header.

<form action="http://www.usfamily.net/cgi-bin/emailform.cgi" method="POST">


The following options are also available to you:

Specify an email subject:
<input type="hidden" name="subject" value="Test Inquiry">

Specify a return page in the return field:
<input type="hidden" name="return" value="/contacts.html">

Specify a page to go to immediately after submit is pressed:
<input type="hidden" name="exit" value="/contacts.html">

You may have the fields in the email you receive sorted into an order of you choice by specifying a field called sort with a value of the fields in your desired order. This example would return 5 fields in the order listed.
<input type="hidden" name="sort" value="name,address1,address2,state,zip">

Matt's GGI Formmail.cgi
We now have formmail from Matt's CGI Script Archive available for knowledgeable advanced users.

Usage:
<form action="http://www.usfamily.net/cgi-bin/form_mail.cgi" method="POST">
For security reasons you must contact us to request to have the email address you use for this form to be added to our trusted address list.

Did this Frequently Asked Question provide the information you were looking for? Provide us with your Feedback and suggestions for improving this FAQ.


Email FAQ to: