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: In the sample application, what happens to items that users have in their carts when they leave the site without completing their orders?
2: Why can a user have multiple lines in the shopping cart file associated with the same file?

Exercises

1: Enhance the shopping cart application so that the session ID is preserved in the query string in each link as well as being stored in the cookie.
2: Add a button to the cart page that allows users to remove all of the items from their cart at once.

Quiz Answers

A1: When users abandon their ...

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.