There is a table that consists of three fields: id, view, position.
The cycle page displays the blocks with the inputs specified in the table.
Records - 15. And the form for all these blocks and the button SAVE one.
How to save all changes for all records in the database?
I can not figure it out, because for each block there will be inputs with the same variable names.

    1 answer 1

    In one form, simply identical names are not meaningfully put to work (they will take php by unique keys), you can declare an array in a special way with name="a[]" there were gaps, otherwise you will not find to which line the value belongs.

    • Did not quite understand about the array. How to implement it? - Frontender
    • 2
      in the form <input type = "text" name = "id []"> in php there will be an array $ _POST ['id'] [0 ...] - zb '10
    • Ah, got it. Thank. - Frontender