How to retrieve the Selected checkbox names ( Multiple Selected) in PHP?

devilshame

New Member
I had multiple checkbox which is generated using loop. After submitting the form I want to get the names of the selected individual checkbox to store it in database as id. Please help me.. Thanks in advanceCode i used for generating checkbox in loop:\[code\]while($arrayRow = mysql_fetch_assoc($rsrcResult)) { $strA = $arrayRow["area_id"]; $strB = $arrayRow["area_name"]; echo "<div class=\"area_check\"><input type=\"checkbox\" id=\"covarea[] \" />$strB</input></div>"; }\[/code\]This code I used for getting names for it didnt worked. It only returned state of check box as ON\[code\] while (list ($key,$val) = @each ($box)) { $aid=$val; echo $aid;}\[/code\]
 
Back
Top