There are some weeks (OK - MOST weeks!) where I have great
fun during training course writing examples in front of the class that help with
their application of the subject being taught. And this is one of those weeks.
It's an added pleasure where the demonstrations are web based, because I can then put a running copy up onto our web site and share the fun with everyone.
Here is a little demo - nothing too complex - that lets you enter in some values to a form. It validates the entries, gives you opportunities to correct errors without having to rekey everything and produces a nice final result. Not rocket science, but the sort of thing so
many web sites need. As it's a training example, I'm able to put up the
source code too and I've even built in some documentation.
Oh - the application is also "bullet proofed" so that users are prevented from doing lots of the nasty things that can be done to an interactive web page ... or rather, if they try, they'll be thwarted!
(written 2006-03-10, updated 2006-06-05)
Associated topics are indexed under
P221 - Perl on the Web [2551] Perl and the Common Gateway Interface - out of fashion but still very useful? - (2009-12-26)
[1198] From Web to Web 2 - (2007-05-21)
[975] Answering ALL the delegate's Perl questions - (2006-12-09)
[687] Presentation, Business and Persistence layers in Perl and PHP - (2006-04-17)
[662] An unhelpful error message from Apache httpd - (2006-03-30)
[590] Danny and Donna are getting married - (2006-02-03)
[493] Running a Perl script within a PHP page - (2005-11-12)
[433] FTP - how to make the right transfers - (2005-09-01)
P404 - Perl - Extending Flexibility Using CGI [1365] Korn Shell scripts on the web - (2007-09-25)
[1187] Updating a page strictly every minute (PHP, Perl) - (2007-05-14)
[426] Robust checking of data entered by users - (2005-08-27)
P406 - Perl - More CGI Programs and Facilities [2321] Uploading and Downloading files - changing names (Perl and PHP) - (2009-08-04)
[1009] Passing GET parameters through Apache mod_rewrite - (2006-12-27)
Some other Articles
Lost CamelUsing a MySQL database from PerlIf it's Sunday, it must be BedwynHow similar are two wordsSimple but rugged form handling demoTraining Centre PicturesProgress bars and other dynamic reportsA pile of sand? Where do we stand?CarnivalWhat is your business latency and potential?