Send the table on PHP
Send the table on PHP

Hello there,
so i do this code : https://jsfiddle.net/y6ogvj05/
so when i clic on Validation i need to send all the tab on my php server_processing, can u help to understand why i can get all table info please
i think problem is here :
'''
$("#valider").click( function()
{
console.log(table.data());
}
);
'''
so how get all table info to send him on py server_precess.php ?
thanks
This discussion has been closed.
Answers
i found this : https://datatables.net/reference/api/toArray()
but i don"t all table info on my array
i do a new version : https://jsfiddle.net/qhz89evu/
but i can't get all datatble information thanks to u
If you want all the row data then use
rows()
instead ofcolumn()
. I updated your example to show this:https://jsfiddle.net/b1qfpcvy/
Kevin
Hello thanks,
now the problem if i clik validate one time and i add some stuff or remove some line, when i click again on validate to get my information to php, the data is not update, but i can't get what i see,how update the tab before send him to php please
this is my new tab : https://jsfiddle.net/xpqzogfr/2/
thanks
Looking at the browser's console you are getting this error:
Kevin
Hello,
thanks for u response,
i try this on my own serveur to have the php url : 'server_processing.php',
the code working, the problem is my jscript problem
on my code on the javascript line :
i don't have the same result with data console JS and the result replaceWIth,
the replaceWith works the first time, and after when i change my datatables, i can't get the good data on my php code.
ok so i fix this jquery probléme, u have to use this fonction
i update the exemple code here : https://jsfiddle.net/9fhrw3dz/
Ok so now need to know how to add forms to update the tab and send information to Symfony