I have 3 product panels on the main page, and I am writing a CMS page for it. I am trying to check the items.
They are chosen by the three elements <select>, featured1, featured2and featured3. Defaults to<option value="0" selected>Select an element</option>
I need to check $_POSTto make sure that the user has not selected the same product for several panels.
I figured out what everyone $_POSTshould be $_POST['featuredN'] > 0, but I cannot find a logical way to handle 7 potential results. Using a logical table, where 1 is the setpoint.
1 2 3
-------
0 0 0
1 1 1
1 0 0
0 1 0
0 0 1
1 1 0
0 1 1
If the item is 0, I will not update it, but I want the user to be able to update one item if necessary.
, 0, , 0.
, . , , 1 0 0 0 .
, - , ! , !:)