Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact

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

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.


Articles and tips on this subjectupdated
3445Perl and CGI - simple form, and monitoring script.
In some ways, Perl and CGI (Common Gateway Interface) is "old hat", but some times it's still just what you need. Over the last couple of days, I've been working with Perl, with a customer for an intermediate tutorial session on some aspects of the language such as Object Orientation and Regular Expressions, ...
2011-09-17
 
2834Teaching examples in Perl - third and final part
Three part article ... this is part 3. Jump back to part [1] [2] Following on from two earlier posts, here is the final third of the new examples that I wrote during last week's Perl course, and to which I have added extra documentation over the last couple of days. P212 More on Character Strings "Does ...
2010-06-27
(longer)
2551Perl and the Common Gateway Interface - out of fashion but still very useful?
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 with Servlets, JSPs or a derivative, Python with Django, Ruby with Rails ...), there are often times that I'll have a bit of code that I've run away ...
2010-01-06
 
2238Handling nasty characters - Perl, PHP, Python, Tcl, Lua
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! The < character, when echoed back from a users's input 'unchallenged', may form the start of a tag. So that in a relatively benign case, a user ...
2009-06-21
 
45CGI v mod_perl
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 server software (typically Apache httpd), but as separate processes. This means that each time a script is called up, it has to be translated from the ...
2008-05-10
 
Examples from our training material
area.pl   Single page ruggedised CGI form
bmic.cgi   Simple CGI script with separated view and elementary validation only
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
rsq   Analaysis of a file to the web.
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
slip   Simple Perl / CGI script to calculate BMI
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., 2014: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/resources/P403.html • PAGE BUILT: Thu Sep 18 11:03:17 2014 • BUILD SYSTEM: WomanWithCat