Good CGI scripting.
Exercises, examples and other material relating to training module P774. This topic is presented on public course Using Perl on the Web
|Articles and tips on this subject||updated|
|4391||Refactoring Perl applications to give them a rosy future|
I'm doing some contract work at the moment to help sort out a Perl / CGI web solution that's been running well for a number of years, but needs enhancements and a route forward, and for which the original team's no longer available having moved into other full time employment. And it strikes me from ...
|4320||An example of Model-View-Controller techniques in a Perl / CGI script|
Separating out the look and feel of a web application, the calculation logic involved therein, the standard stuff that's needed in most web applications, and the glue that holds the pieces together was become pretty standard web programming practise.
We call the look and feel the VIEW
We call the calculation ...
|261||Putting a form online|
I answered a question along the lines of "how much will it cost to put my [6 page] web form online" yesterday, and found myself coming up with a list of considerations, which I thought might be woth sharing as a checklist
... How many forms do you want your 6-pager converting into? (Don't do it all ...
Examples from our training material
|Perl.1|| Some sample quiz questions|
|bmic.pl|| Simple CGI script with separated view and elementary validation only|
|main.htp|| Template for Quiz system demo |
|msgsys.pm|| Message System in Perl|
|mycontroller.pm|| Controller for Perl Framework, MVC demo|
|myframework.pl|| The FRAMEWORK for a common gateway interface application|
|myhelpers.pm|| Helpers for Perl Framework, MVC demo|
|mymodel.pm|| Model for Perl Framework, MVC demo|
|myview.htp|| View for Perl Framework, MVC demo|
|q15.pl|| Quiz - Statistical table generator|
|questionset.pm|| Business logic for quiz system demo|
|quiz.pl|| Top level code for quiz system demo|
|thing.pm|| Generic object used within business logic|
|whc_web.pm|| Web helpers for quiz demo (and others too)|
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
Planning your application.
State diagrams and the six step process.
Read form, read session, finish, start, save session, send response.
Sticky fields and sanitising user inputs.
Templating, Web helpers.
Cleaning up old carts.
Putting it all together in the 4 layer model.
Should you use sessions or hidden fields?
Sample Quiz question system using these techniques
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
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.