Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Tips and short articles on this subject
Perl and the Common Gateway Interface - out of fashion but still very useful?
Handling nasty characters - Perl, PHP, Python, Tcl, Lua
CGI v mod_perl
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Perl module P403
The Common Gateway Interface
Exercises, examples and other material relating to training module P403. This topic is presented on public courses Deploying LAMP - Linux, Apache, MySQL, Perl/PHP, Linux Web Server, Using Perl on the Web

Deploying LAMP - Linux, Apache, MySQL Perl / PHP / Python - Installing and supporting applications under Open Source technologies This course is intended ...
http://www.wellho.net/course/alfull.html  [course]
Using Perl on the Web - CGI, mod-Perl, and other standards. Sessions, cookies, content management, etc. This advanced course takes the Perl programmer ...
http://www.wellho.net/course/pwfull.html  [course]
Linux Web Server - Using your Linux system as a Web server with LAMP The major part of this course covers the installation and the configuration of the ...
http://www.wellho.net/course/lwfull.html  [course]
Are your writing or maintaining a web based application that uses forms? If so, you have better be aware of some of the nasty characters that are around! ...
http://www.wellho.net/mouth/2238_Han ... l-Lua.html  [short article]
Is the Common Gateway Interface dead? No - it isn't; although my first choice for a new web application these days would be something else (PHP, Java ...
http://www.wellho.net/mouth/2551_Per ... eful-.html  [short article]
Just debunking a couple of myths today ... CGI (Common Gateway Interface) scripts are run on a web server computer under the control of a piece of web ...
http://www.wellho.net/mouth/45_CGI-v-mod-perl.html  [short article]
#!/bin/perl -- -*-perl-*- # form that decodes user entry # collect values from form $userdata = $ENV{"QUERY_STRING"}; ($field,$value) = ($userdata =~ ...
http://www.wellho.net/resources/ex.php4?item=p403/formurl.pl  [code sample]

Applications often interface to the web through "CGI" Ð the Common Gateway Interface. This module introduces the fundamentals of CGI and how it's used within server-based Perl programs, taking special care to cover issues such as the security of the inputs and the handling and checking of data no matter what the user of your publicly visible website should enter.

This topic is presented on public courses Deploying LAMP - Linux, Apache, MySQL, Perl/PHP, Linux Web Server, Using Perl on the Web

Examples from our training material
area.pl   Single page ruggedised CGI form
first.html   First HTML page to call up CGI script
firstform.html   A first web form
formone.cgi   Running a script when a form has been submitted
formurl.pl   URL decoding - training example
logone.pl   Filtering an access log file from a browser
mydate.cgi   CGI first example - menu based on day of week
mypage.htp   HTML template for shoots.pl demo
perlcycle.pl   cycling through images using CGI
rf1.pl   Looking up an "A Road" - test program
roadfinder.pl   Looking up an "A road" on a web site
seedcalc.pl   Shows structure of a CGI script
seeding.html   Sample form - two boxes to submit to a CGI script
shoots.pl   CGI script - sets up form, also handles form response, in a single page
theywant.renew   Wedding list data
wedlist   Wedding list application
whc_filter.pm   utilities for CGI use
withval.cgi   CGI page with some data validation
Pictures
CGI scripting practical
Background information
Some modules are available for download as a sample of our material or under an Open Training Notes License for free download from http://www.training-notes.co.uk.
Topics covered in this module
The mechanism of the web.
The need for Server Side Programming.
The structure of the server.
Static documents.
Executable programs.
Your first CGI program.
Error Handling.
Use perl -c.
Check with your ISP.
Forms.
Error handling.
URL Encoding.
Input.
Output.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page.

Well House Consultants specialise in training courses in Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses at our training centre in Melksham, Wiltshire, England. It's surprisingly cost effective to come on our public courses - even if you live in a different country or continent to us.

We have a technical library of over 700 books on the subjects on which we teach. These books are available for reference at our training centre. Also available is the Opentalk Forum for discussion of technical questions.


You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2010: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 344596 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho