CGI examples*
* on the BT Connect.com server
A Page Counter
... using <img src="/cgi-bin/Count.cgi?df=0185453">
A Guestbook
... using a guestbook.txt created in ACCESSORIES - NOTEPAD, and saved to your 'secure' sub-directory.
This is built using the following text in the syntax order of :
Title;Guestbook Heading;Instruction Text;Output Order;Display Comments;E-mail Address
... where Title is the informative bit in the top blue bar.
... where Heading is the informative bit at the top of your page.
... where Instruction Text is the informative bit telling the viewer what to do.
... where Output Order is 1 for most recent, and 0 for the oldest entry.
... where Display Order is 1 for display, and 0 for hidden.
... where Email Address is an address to inform you of a guestbook entry. This can be removed by replacing an email address with a ';'
Thus, I have placed here :
Nat's Guestbook !;Here is an open Graffiti board for your use !!;Jot yer nice - and not so nice - comments in-be-yer ....;1;1;nathanielreed@btconnect.com
So my guestbook is here ... which points to the .txt file in my secure directory, and does not need its own HTML page.
This can be customised in the TITLE, HEADING, and INSTRUCTIONS fields.
So I've added a background image and a <FONT FACE="Comic Sans MS ... Helvetica> command in the .txt file in front of the Heading and Instruction fields respectively ; these are 'read' by the browser in an HTML format, so the Heading field equates with the <BODY> command.
A Feedback Form
... using the <FORM ... /FORM> command
... with the <... METHOD="post" ACTION="/cgi-bin/mailto/>email address<"> command
with <input type="text" ... name="name">
and <textarea ... name="comments"></textarea>
and <input type="submit" ... value=">text on the button<">
and <input type="reset" ... value=">text on the button<">
... and a basic mail-to form can be found here
The reply is unformatted, and alphabetical, so for example, 'comments' would appear before 'name'.
The command <input type="hidden" name="REQUIRED" value="email"> makes a field mandatory, in this case, the email address field.
The command <input type="hidden" name="SUCCESSorFAILURE-RESPONSE" value=">message<"> replaces the default server text with your own message for either a SUCCESS or a FAILURE response;
The command <input type="hidden" name="SUCCESSorFAILURE-RESPONSE-URL" value="http://...."> specifies a destination URL for a response page that you can create yourself, tying in with the designed layout of the rest of your site.
... and a file-to type form can be found here
Using <FORM METHOD="post" ACTION="/cgi-bin/fileto?URI">
<input type="hidden" name="FILENAME" value="/URI/path/file.txt"> ... where 'URI' is the server w/site address, 'path' is the sub-directory [docs], and 'file.txt' is the .txt receiving file for the feedback response.
... and a secure type form can be found here
Using https to denote a secure server connection
.... with <FORM METHOD="post" ACTION="http://home2.btconnect.com/cgi-bin/fileto?URI">
<input type="hidden" name="FILENAME" value="/URI/path/securefile.txt"> ... where 'URI' is the server w/site address, 'path' is the sub-directory [secure], and 'securefile.txt' is the .txt receiving file for the feedback response.
Flat File Data Search
... or, having a mini search-engine within your own website !
A Flat File Search is the most basic type because it methodically searches through the criteria fields.
... and the Flat File Data search engine can be found here
Store Front
... or, having an online shopping facility !
Follow this link to go to my ye olde intergalactic shoppe ......
For the BT Connect / BT WebWorld service, log in to the relevant web sites' member areas and follow the storefront creation-administration prompts.
User Groups
... or, having a discussion forum that is password-protected.
Open User Groups
Where the user creates his own username and password.
... and the Open User Group can be found here
Closed User Groups
Where the user is assigned his username and password by the account administrator.
... and the Closed User Group can be found here