Home › Forums › Back End › [Solved] Need Help with PHP code for using an array checkbox › Re: [Solved] Need Help with PHP code for using an array checkbox
September 10, 2009 at 9:48 pm
#63780
Member
$rooms=$_POST;
$roomchoice=”;
foreach($rooms as $key=>$value){
if($roomchoice!=”){ $roomchoice.=’, ‘; }
$roomchoice.=$value;
}
That will display all the selected values in a string separated by a comma.