Forum Moderators: coopster
<form action="index.php" method="post" data-ajax="false">
<div data-role="fieldcontain" style="border:0;">
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Title 1:</legend>
<input type="radio" name="title_1[]" id="title_1" value="1" />
<label for="title_1">Ok</label>
<input type="radio" name="title_1[]" id="title_2" value="0" />
<label for="title_2">Not Ok</label>
</fieldset>
</div>
</form>
$grab_title = $_POST['title_1'];
$arr = array($grab_title);
echo implode(",",$arr);
$fix = $_POST['help'];
$fix2 = $_POST['text_a'];
$chelp = count($fix);
$ctext = count($fix2);
if($chelp == $ctext)
{
for($x = 0; $x < $chelp; $x++)
{
$str[] = "('{$fix[$x]}','{$fix2[$x]}')";
}
$s = implode(',',$str);
mysql_query ("INSERT INTO vehicle_inspection (selection,problem) VALUES $s");
}