ontheedge
11-16-2011, 11:37 PM
I've searched all over the internet and finally decided to post because I just can't figure this out :(
I'll try to give a pretty simple example and hopefully be able to describe what I need:
Example: Let's say I have to store information on Pizza's and their toppings in a database. There would be a Pizza Table (Unique ID and Description). An example might be: 1, Meat Pizza {Where 1 is the UID and Supreme is the description of the pizza type}.
There would allso be a Toppings Table (Unique ID and Description). An example might be: 1, Pepperoni... 2, Sausage... 3, Green Peppers. (Same style as above).
There is a 3rd table, let's say: Pizza_Toppings. This would contain the Unique ID's from the 2 tables above... So if the meat pizza had Pepperoni and Sausage only, it would look like this:
Pizza_Topings Datatable
Pizza_UID, Toppings_UID
1,1
1,2
That would show that the Meat Pizza (UID=1) has both Pepperoni (UID=1) and Sausage (UID=2)
Here is the problem (sorry it took so long to get here) :)
I want to be able to edit this information and was hoping to have checkboxes for ALL ingredients. Then I would either check or uncheck depending upon need for that pizza. The problem comes when I uncheck something.. I can't seem to 'pass through' both checked=yes and checked=no in the _POST.
What is the BEST way to do this (even if it means another object, not a checkbox).
Thanks!
I'll try to give a pretty simple example and hopefully be able to describe what I need:
Example: Let's say I have to store information on Pizza's and their toppings in a database. There would be a Pizza Table (Unique ID and Description). An example might be: 1, Meat Pizza {Where 1 is the UID and Supreme is the description of the pizza type}.
There would allso be a Toppings Table (Unique ID and Description). An example might be: 1, Pepperoni... 2, Sausage... 3, Green Peppers. (Same style as above).
There is a 3rd table, let's say: Pizza_Toppings. This would contain the Unique ID's from the 2 tables above... So if the meat pizza had Pepperoni and Sausage only, it would look like this:
Pizza_Topings Datatable
Pizza_UID, Toppings_UID
1,1
1,2
That would show that the Meat Pizza (UID=1) has both Pepperoni (UID=1) and Sausage (UID=2)
Here is the problem (sorry it took so long to get here) :)
I want to be able to edit this information and was hoping to have checkboxes for ALL ingredients. Then I would either check or uncheck depending upon need for that pizza. The problem comes when I uncheck something.. I can't seem to 'pass through' both checked=yes and checked=no in the _POST.
What is the BEST way to do this (even if it means another object, not a checkbox).
Thanks!