How to pass HTML table's row value in the PHP array. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to pass HTML table's row value in the PHP array.

I am facing a problem in storing HTML table's row values in PHP array. I also want to store these php array values in my database. Can someone please help me in solving these problems.

19th May 2020, 1:45 PM
Pranav Nigam
Pranav Nigam - avatar
5 Answers
+ 2
Use javascript to get the values and use ajax to submit the values to your php script
19th May 2020, 3:56 PM
Ore
Ore - avatar
+ 1
I thought to do this using checkbox by placing a checkbox in front of each row but I am only able to pass a single value to that checkbox but I want at least two values assigned to each checkbox.
19th May 2020, 1:56 PM
Pranav Nigam
Pranav Nigam - avatar
+ 1
Ore Adeleye can you please give me a sample code..
19th May 2020, 7:17 PM
Pranav Nigam
Pranav Nigam - avatar
+ 1
Pranav Nigam You won't gain anything if I give you full code. Try to do it yourself and post your minimal working example here
19th May 2020, 7:43 PM
Ore
Ore - avatar
+ 1
Ore Adeleye thanks for your response🙂
19th May 2020, 7:57 PM
Pranav Nigam
Pranav Nigam - avatar