<form method="post" name="form1">
<input name="check[1]" type="checkbox" value="1"/> <input name="quantity[1]" type="checkbox" value="5"/>
<input name="check[2]" type="checkbox" value="2"/> <input name="quantity[2]" type="checkbox" value="2"/>
<input name="check[3]" type="checkbox" value="3"/> <input name="quantity[3]" type="checkbox" value="8"/>
<input type="submit" name="listupdate" class="btn btn-success" value="Update"> </form>
in controllers
foreach ($_POST['check'] as $value)
{
code get post update....
}
Help me ! Thanks