Exercises, examples and other material relating to training module P404. This topic is presented on public course Using Perl on the Web
How to handle many and multiple form types in a CGI-based Perl program, and how to use the alternative POST method if appropriate. With other extras too, after this module, you'll be writing real, competent applications that handle form inputs and produce a professional, secure, correct response.
Related technical and longer articlesNasty Characters in Web ApplicationsAccessing a MySQL database via a browser, Perl and CGI
|Articles and tips on this subject||updated|
|426||Robust checking of data entered by users|
10 steps to testing the bullet proofing user inputs or how to avoid being caught by nasties when your script goes live!
1. Test it works with intended entries. It's not going to be much good if it falls over when someone entered a valid piece of data!
2. Test it works (fails correctly) with erroneous ...
|1365||Korn Shell scripts on the web|
I know that the Korn shell isn't exactly the most common language for web scripting ;-) .... but if you've got a load of Korn shell scripts and a heap of Korn shell experts ... why not?
"How would you do it" I was asked yesterday and I put together a tiny demo to show some of the first principles. ...
|1187||Updating a page strictly every minute (PHP, Perl)|
For the Clock exercise that I mentioned in my last entry, I need to update the page once a minute. Exactly once a minute. At the start of the minute.
I'm using client pull, where the browser asks for the next page - so my basic request is:
<meta http-equiv="refresh" content="60; url=/clock/now.php">
|641||Simple but rugged form handling demo|
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 ...
Examples from our training material
PicturesStudying the question and tips
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
Returning a location.
Writing a document to the server.
Forms with multiple fields.
Get v post.
The CGI program environment.
Other types of form element.
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.