mardi 2 mai 2017

Update multiple rows in single form laravel 5.2

I have a single page displaying multiple rows in the format of a spreadsheet.

inside of a foreach loop, I'm adding the ID to the start of each field, so In this case I'm trying to save all of the updated fields corresponding to there ID using AJAX.

I'm not sure of the best way to save multiple rows in one single form/map the data, E.g

 <input type="text" id="Portfolio" name="__Portfolio"
  data-row="" data-col="Portfolio" value="
 ">

Returns the result of

1_Portfolio 2_Portfolio 3_Portfolio 4_portfolio

I then need to save this into the row with the right ID.

If anyone has done this before some code examples would be greatly appreciated!

Thank you.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire