Later on I simply echo these values. The user can submit a second product with options. When it does that, it replaces the first selection that I echoed. How do I tell it to remember the first selection, and add any additional inputs?
Ok, I'm looking at my PHP book. I can see how using an array over sessions would work, but I'm having a little trouble with the idea. Maybe someone can fill in the blanks.
I have 4 input boxes for quantity-product-color-size. Once they are complete and submitted the info is placed in a table and the user can fill the boxes out again to add to the first selections. I can't seem to keep it from replacing the previous info.
I'm pretty new to this, and thats why the code above probably makes no sense. Here is what I wanted to do:
Each time a user submits their specifications I want it to make a new array. First time is $arr1 (array should start at 1) second is $arr2 and so on. Each of these arrays has 4 places - quantity, product, color, size. That way I can easily find find the color of the 45th product $arr45 (example).
From there I'll need to create a $masterarr of each $arr[i]. Then it will display each array as a seperate row.