Here's a link to what I'm working on:
www.swiftda.com/buildaboat/buildaboat.htm
If there are multiple checkbox selections I would like to display them one on top of the other:
(Ex.
Hull Color....$575
Deck Color....$1,100
ect.)
There's a section where someone will fill out their information then go on to making their selections. The radio selections work exactly how I would like them to by doing this:
$engines_array = array("12946" => "E 150DPXSC", "14348" => "E 175DPXSC");
$engine_value = $_POST['Engines'];
echo "Engine Type: " .$engines_array[$engine_value];
I tried applying that same logic to the check box array and cannot get it to work.
Right now here's my current checkbox array coding:
//Hull Color Array
$hullcolors_array = array("575" => "Hull Color ",);
$hullcolor_value = $_POST['hullcolor'];
//Hull Color Output
if(empty($hullcolor_value)){
$hullcolor_value = array(" ");
}
foreach($hullcolor_value AS $hullcolor){
echo $hullcolor."<br /> ";
}
This is where I was at before with the radios until you helped me out. It only outputs the value, so on the results page, all you see is the "575" and not:
Hull Color....$575
If you test the link I gave you, you will see "Hull Color....$575" because the "Hull color" is coded in HTML but the problem with that is that it is always there. I only want the Hull Color to be displayed when it is checked like the radio selections. Any help would be greatly appreciated!