Workshop

The quiz questions are designed to strengthen the knowledge you gain each hour. The exercises help you build on that knowledge by providing you with the opportunity to apply it to real problems.

Quiz

1: What are the two primary advantages of using JavaScript for form validation?
2: Why is it important to validate user-submitted data in your CGI programs even if your forms are validated with JavaScript?
3: What is the difference between the + character and the * character in regular expressions?

Exercises

1: Write a JavaScript function that verifies that a user checked a checkbox.
2: Write a Perl subroutine that verifies that the user entered a nine digit Social Security Number, and that all of the characters the user entered are digits. ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.