Hi Guys,
I'm working on a shopping cart code and i haven't had
any success on how to approach this problem. Here is goes...
The page should initially query the database for products:
products desc cost
xxxxxx xx 4.0
xxxxxx xx 5.0
The queried data should be presented into html page created by the PHP script will contain a form.
products desc cost Checkbox Qty
xxxxxx xx 4.0 [Checkbox] [blankfield]
xxxxxx xx 5.0 [Checkbox] [blankfield]
This form will have a set of textfields in rows and columns: products,desc,cost checkbox, blank field to enter the number of qty required. When the checkbox is checked it means that the user wants the item and should be added to the shopping cart.
How should i approach this? Can this be done through arrays?
Any help would be very much appreciated. Thanks in advance.