Código PHP:
<form action="" method="post">
<div id="files">
<div class="file" id="file1">
<input name="opciones" type="text">
<input name="opc1" type="checkbox">
<input name="opc2" type="checkbox">
<input name="opc3" type="checkbox">
<a name="file1" href="#">Quitar</a>
</div>
<div class="file" id="file2">
<input name="opciones" type="text">
<input name="opc1" type="checkbox">
<input name="opc2" type="checkbox">
<input name="opc3" type="checkbox">
<a name="file2" href="#">Quitar</a>
</div>
<div class="file" id="file3">
<input name="opciones" type="text">
<input name="opc1" type="checkbox">
<input name="opc2" type="checkbox">
<input name="opc3" type="checkbox">
<a name="file3" href="#">Quitar</a>
</div>
</div>
<input type="submit" name="send" value="Enviar">
</form>
Código PHP:
if(isset($_POST['send']){
$cont=0;
$cant = count($_POST['opciones']);
while($cont < $cant ){
$opciones = $_POST['opciones']["$cont"];
$sql = mysql_query("INSERT INTO price_opc (id_price, opciones, opc1, opc2, opc3 ) VALUES ('".$id_price."', '".$opciones."', '".$opc1."', '".$opc2."', '".$opc3."')");
$cont++;
}
}