Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))

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., 2024: 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