www.createasite.net
freewh.890m.com

CGI Scripts

CGI Scripts Gallery is a collection of free Perl CGI scripts written for beginners to help create a website with interactive features.

The scripts should be copied and executed in order of their listing. Later scripts will use functions introduced in the earlier ones.

The first collection of scripts contains functions for manipulating flat database files. Subjects covered: Saving information to a file. Reading from a file and displaying the information to the screen. Searching a file, sorting and deleting. A handy HTML interface is provided for easy access to all scripts.

Copying Scripts

The scripts are so simple that you can just copy them to Notepad and save them at your convenience.

To copy the scripts hold down the left mouse button and run it over the entire script to highlight. Right click on the highlighted text. Click Copy. Open Notepad. Right click inside the Notepad window. Click Paste. Save the scripts to your C:\usr\cgi-bin directory with a .pl extension. Text files .txt extension.

Download Zip File

You can also download a zip file containing all of the scripts. Download cas_scripts.zip


Free CGI Script Collection

Flat Database Management

Use this CGI script to learn to run CGI scripts on the localhost. It demonstrates how to send an HTML page to the computer screen.

hello_script.pl

Script #2 Add Names to the Database

There are two scripts in this exercise. The first produces a simple form that queries a user for a first and last name. The second script processes the data from the form, saves it to a file and sends a message back to the user.
form_script.pl - save_file.pl

Script #3 Display the Database

This script opens the previously created file names_file.txt and displays the contents to the screen.
read_file.pl

Script #4 Search the Database

There are 2 scripts in this exercise. The first creates a form and queries a user for a last name. The second script processes the information from the form opens the file and searches for a match. It returns both the first and last name if found in the file.
search_form.pl - search_file.pl

Script #5 Delete a Name form Database

There are 2 scripts in this exercise. The first creates a form that queries a user for a first and last name to delete from the database. The second script parses the form information, searches the database for a match and deletes it if found.
search_to_delete.pl - delete_name.pl

Script #6 Sorting the Database

Sort by name or number. Two different sorting scripts
sort_names.pl - sort_numbers.pl

Script #7 An Interface for the Database

A simple HTML interface page to tie all the scripts together for easy access.
db_interface.html

Script #8 Message Board

This collection of CGI scripts and HTML pages can be used to create a message board or a simple forum.

This exercise includes an HTML form for entering a new message and a CGI script to process the form.
message_brd.html - post_message.pl

Script #9 Take a Poll

This exercise includes 2 scripts. The first is a form using radio buttons. The second script processes the information from the form, appends it to a file then reopens the file and calculates the results.
opinion_poll1.pl - rate_op1.pl

What is CGI?

Create a Website with CMS
Member Registration and Polls Automatic

Member Registration and Polls are automatic using CMS.

Visit our Joomla Website , then get your CMS at CREATEaSITE.BIZ for only $4.25 with Free Setup and Free Domain Name.

Just want to pay more? Get it an one of these leading web hosts:
HostMonster    Enter for a chance to win a new car!      

Script 1

Net Success 2000 Plus Inc
PO Box 1508
Somerset, KY 42502
Copyright 2000 - 2007 Net Success 2000 Plus Inc
Last Modified: December 7, 2007

|HTML OnLine | Website Tutorial | Home |