I am coding a (very) basic online-store:
I am currently in the process of writing the PHP code to deal with the information on the form when it is submitted, and have hit a brick wall.
As you can see I only have three 'products' on this website. I am conciously not allowing the user to buy these products in varying quantities, rather forcing the user to select which products they would like via the checkboxes.
With the PHP code I am trying to design an order confirmation page, which will display the user's contact details and order details and ask them to confirm that they are correct.
I have got the textbox values working on the server side, but I am struggling with the checkboxes.
I want to be able to check which checkboxes are checked, and display the relevant product and price on the confirmation page.
For example, if the user submits the form with the Tshirt checkbox checked, I would like the PHP to return
quote:Please confirm the following details are correct:
Tshirt - £10
In searching, I have found similar example code, but it is much more complex than what I am trying to achieve and I cannot comprehend it.
Any help would be greatly appreciated guys
thanks in advance - Ravie