Hi all
So I need to make an order form which lists a few products, you select quantity and then postage choice and then checkout and ask customer for address and CC details. Finally display an order confirmation.
My query is about storing the user's choices and the products. I was thinking create an array to store each product and its price, for listing them in form. Then to carry that information to the order confirmation I could use a multi-dimensional array to store the price, product, and quantity ordered. Is there a better way or a good way without using multi-dimensional arrays?
Thanks!
P.S. It's only a basic order form, not going to be used in a live environment at all.
So I need to make an order form which lists a few products, you select quantity and then postage choice and then checkout and ask customer for address and CC details. Finally display an order confirmation.
My query is about storing the user's choices and the products. I was thinking create an array to store each product and its price, for listing them in form. Then to carry that information to the order confirmation I could use a multi-dimensional array to store the price, product, and quantity ordered. Is there a better way or a good way without using multi-dimensional arrays?
Thanks!
P.S. It's only a basic order form, not going to be used in a live environment at all.