next up previous
Next: Form Processing Up: Specification Previous: Specification

Form Generation

Products are stored in a file called catalog.dat. A line of the file has the following format:

{product-code}:{product-name}:{commerical-price}:{noncommercial-price}:{product-description}
For example,
C05:Net Chat:50:20:New version; can handle any number of visitors!
Product codes consist of three characters and are unique. You will first need to read and store this data in some reasonable data structures (perhaps separate hashes for product names, commercial prices, noncommercial prices, and descriptions, each using product code as keys, or separate arrays for each data field).

The <TITLE> of the order page should be Order Form for New Customers. The page itself should consist of the following:


next up previous
Next: Form Processing Up: Specification Previous: Specification
Louis Ziantz
4/23/1998