Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.

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 P412
Using CGI.pm
Exercises, examples and other material relating to training module P412. This topic is presented on public course Using Perl on the Web

The CGI.pm module provides a huge array of subroutines that enable you to handle CGI requests and generate HTML web pages in response without having to code down to the URL decoding and tag generation level yourself.

Related technical and longer articles
Handling Cookies through CGI.pm

Articles and tips on this subjectupdated
2231What is CGI.pm / A dozen new examples
Perl's CGI.pm module allows both a structured and Object Oriented approach to generating and handling web pages via the Common Gateway Interface. It was written (a long time ago now) to provide a library of routines to help Perl programmers write web applications without having to (re)write or roll ...
Examples from our training material
bookkeeper.pl   function to clear old session files
cgi_cookies.pl   Report on cookies from browser
cgi_serverpush.pl   Server push - a series of responses pages
cgi_shoppingcart.pl   Complete shopping cart demo - using CGI.pm
cgiform.pl   How to set up a form using CGI.pm
cgihello.pl   Hello CGI.pm world
cgiobjects.pl   Hello Object Oriented CGI.pm
cgireadback.pl   Reading back from a form via CGI.pm
cgitables.pl   Setting up tables with CGI.pm
cook2.pl   CGI.pm - sessions using hidden fields
cook3.pl   CGI.pm / sessions with hidden fields / page 2
cookstart.pl   CGI.pm OO form / for hidden field session demo
extrapath.pl   CGI.pm - how to find server parameters such as remote address
favbrek.pl   Sample exercise answer - favourite breakfast
formdumper.pl   Finding what fields have been submitted - CGI.pm
upload_form.pl   Using CGI.pm to upload an image - initial form
upload_handler.pl   Using CGI.pm to upload an image - submission handler
with.pl   Simple seb page with CGI.pm
without.pl   Simple seb page withOUT CGI.pm (for comparison)
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 [here].
Topics covered in this module
Cautionary Notes.
What does CGI.pm provide?.
Using CGI.pm to produce your HTML.
Using the Object Oriented interface of CGI.pm.
Methods to produce HTML.
Anchors and Images.
Other HTML element support.
Producing a form.
Reading back form data.
Debugging tools.
State and cookies.
What is state?.
Maintaining state using CGI.pm and hidden fields.
Issues with maintaining state.
Using cookies to maintain state.
Using CGI for cookies.
A scheme for applications that maintain state.
A shopping cart example.
Other topics.
Handling fields in multiple.
The Environment.
Handling special characters in output text.
File upload.
Further uses of header.
Writing your own client (LWP).
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 Ruby, Lua, 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.

You can Add a comment or ranking to this page

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

PAGE: http://www.wellho.net/resources/P412.html • PAGE BUILT: Sun Oct 11 14:50:09 2020 • BUILD SYSTEM: JelliaJamb