$id = 123;
echo '<pre>';
var_dump($_GET);
echo '</pre>';
if(isset($_GET['row']) && is_array($_GET['row']))
{
foreach($_GET['row'] as $row_id => $data)
{
echo "update table set price = {$data['price']}, name = '{$data['name']}' where id = {$row_id}<br>";
}
}
echo "<form>
<input type='number' name='row[{$id}][price]' placeholder='price'>
<input type='text' name='row[{$id}][name]' placeholder='name'>
<input type='submit'>
</form>";