in reply to CGI script help

it is supposed to be able to read in multiple orders and then output all of them. So far, I can only do one order at a time, and I'm not sure how to make it do multiple orders.
You need to store the order data someplace between page calls. Here are some of the standard techniques that are used with web applications:
  1. Store the data in a database (like mysql, sqlite, Oracle, etc.)
  2. Store the data in a file on the server.
  3. Store the data as client cookies.
  4. Store the data as form variables which get continually passed between the pages.
The basic idea is that your CGI script will consult the datastore (whichever one you decide to use) for the old order data, add the new order data passed in via form variables and then store everything back out to the datastore so it's ready for the next call to the CGI script.

Since this looks like a class assignment, you might see if the instructor has given any indication of a preferred way to do this. For instance, if this is an intro web programming class, I doubt you will be expected to learn how to interact with a database since that would take up a lot of time that could be used to introduce a lot of other concepts. On the other hand, if the class has already covered how to interact with databases, perhaps that's the approach you should pursue.