I'm working on a custom basket - http://www.dtrmedical.com/test-site/index.php?id=3&productid=130. I want to pass the checkbox options chosen from one form to the other.
I have two forms that represent two stages of a basket:
- To see the first form click the "add to wish list button". Check some options then click the "add to wish list" button at the bottom.
- To see the second form, click the green "wish list button". This will show the options that were chosen.
I want to show the options that were ticked in the first form, ticked on the second form. How could I do this?
Should you wish to see the code in it's entirety - http://pastebin.com/W3UVSSEx
The first form starts on line 197 and the second on line 276.
The checkboxes in both forms are displayed in this manner:
<input type="checkbox"
name="<? echo $productid."_".$product_quantity[id]."_".$product_option[id]; ?>"
value="<? echo $quote[qty]; ?>"
/>
<input type="checkbox"
name="<? echo $productid."_".$product_quantity[id]."_".$product_option[id]; ?>"
value="<? echo $sample[qty]; ?>"
/>
I've attempted to use isset
but I'm not sure what to check against as my checkbox names are variables.