Web Services
Tips & Tricks
Some useful tricks and tips you can use when building your web pages
Site Map
Virtual Services
Web Design
Advertising
Tips & Tricks
Home
Web Pages (Tips & Tricks)

Here are a couple of options that you can include in your webpages
Simple Web Counter
Auto Jump via Select box
Simple Email Form


Simple Web Counter

The counter comes as two programs:

To use either program copy the line and add it as an html tag to your page. Where ever you place your html tag is where the counter will appear.

1: <!--#exec cgi="/cgi-bin/counter"--> Ongoing counter
or
2: <!--#exec cgi="/cgi-bin/counterm"--> Montly counter (Resets each month)

This will put a normal counter on your web page.  The counter increments
each time the page is loaded, and is actually a link to
http://www.ocis.net/stats.html. (Which I don't think exists yet. :P )

Here's some switches you can add:

-nd Don't display the counter
-nl Don't make it a link to the stats page.
-ord Make it an ordinal number. (1st, 2nd, etc..)

Please Note: Any time you update your page with netscape you will have to reenter this code and html tag
 

For example:

You are visitor #<!--#exec cgi="/cgi-bin/counter-nl"-->

would print something like:

You are visitor #289

---

You are the <!--#exec cgi="/cgi-bin/counter-ord-nl"--> visitor.

would print something like:

You are the 234th visitor.

---

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

Wouldn't print anything, but would keep counting.  This way you have an invisible counter running.  People don't see how many hits you get, but it still keeps track. 

Important: You must ftp your page to your website and upload it  as you can't view the counter except from your published webpage.

To see an example of this counter goto:

http://www.ocis.net/testing/webcountertest.htm

Creating an Email Form

First what you must have is a Web Page with <FORMS> with a few <INPUT> entries as well as an {email template} such as: 

-----
<FORM method=post action="/cgi-bin/cgiemail/{email template location}">
Name: <INPUT type=text name=name size=20><BR>
Phone: <INPUT type=text name=phone size=20><BR>
EMail: <INPUT type=text name=email size=20><BR>
</FORM>
-----

{email template} is a text file somewhere within your web pages that will
look similar to the following:

-----
From: {from address}
To: {to address}
Subject: {subject}

Name:  [name]
Phone:  [phone]
EMail:  [email]
-----

Where {from address} will be the email address who you want the mail to
look like it came from (it will really come from the web form so you could
say web_form@www.ocis.net if you wish).
Where {to address} is the email account you want the form information to
be posted to.
Where {subject} is whatever you want the subject of the mail message to
read.
Any of the header fields may contain some of the data from the Web Form.

The rest of the {email template} may be formatted however you like.
The name of any INPUT field from the FORM may be contained in square
brackets ([]) and the value associated with that name will be inserted
into the email message.

So in the above example, if there was a file in
~user/public_html/webform.txt that looked like the {email template}
example, the FORM entry would be:

<FORM method=post action="/cgi-bin/cgiemail/~user/webform.txt">

and if {from address} was web_form@mail.ocis.net
and {to address} was cdick@mail.ocis.net
and {subject} was Info from Web Form

and if on the Web the form was filled out with:

Name: Colin Dick
Phone: 376-3858
EMail: cdick@mail.ocis.net

The following email would be sent to cdick@mail.ocis.net

From: web_form@mail.ocis.net
To: cdick@mail.ocis.net
Subject: Info from Web Form

Name:  Colin Dick
Phone:  376-3858
EMail:  cdick@mail.ocis.net 
 

If you did not find your answer in our tech help, please fill out the Support Form

 

 


| OCIS | On Call BC | Country Times | Inews | Kamloops.net | Site Map |


©2001 On Call Internet Services. All rights reserved. On Call Internet® is the registered trade mark of On Call Internet Services.