HI All,
I am developing an application where each product may or may not have options (all data stored in DB). What is puzzling me is how to handle the options coming back from the clientside.
I have created the order/add to cart page where the user can see and choose the options associated with a particular product (have generated the options dynamically on each page based on product). I was planning to use checkboxes for each option. My dilema is that I am unsure as to how to read the options on the server and then pass them to the cart table/sales table. What I want to do is to place all the options in an array and write the entire array of options(csv) to a text field in the DB.
I just can't seem to figure out how to handle the dynamic number of checkboxes. Does any one have any ideas?
My other option would be to populate a select box with the options and let the user choose that way (using the MULTIPLE attribute to allow more than one choice). I would prefer to use checkboxes as the interface is easier for the user to understand.
If this is not clear, I can try to explain it again.
TIA Bastien
There are many ways to skin this cat,
but it still tastes like chicken
I am developing an application where each product may or may not have options (all data stored in DB). What is puzzling me is how to handle the options coming back from the clientside.
I have created the order/add to cart page where the user can see and choose the options associated with a particular product (have generated the options dynamically on each page based on product). I was planning to use checkboxes for each option. My dilema is that I am unsure as to how to read the options on the server and then pass them to the cart table/sales table. What I want to do is to place all the options in an array and write the entire array of options(csv) to a text field in the DB.
I just can't seem to figure out how to handle the dynamic number of checkboxes. Does any one have any ideas?
My other option would be to populate a select box with the options and let the user choose that way (using the MULTIPLE attribute to allow more than one choice). I would prefer to use checkboxes as the interface is easier for the user to understand.
If this is not clear, I can try to explain it again.
TIA Bastien
There are many ways to skin this cat,
but it still tastes like chicken