Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I transfer a javascript value to a php variable?

Tags:

javascript

php

I have an html table containing values that are being generated from javascript. How do I transfer those values to php variables?

like image 713
pgtips Avatar asked Nov 23 '25 15:11

pgtips


1 Answers

Encode the table contents as JSON and POST it to your PHP script.

like image 64
Ignacio Vazquez-Abrams Avatar answered Nov 26 '25 03:11

Ignacio Vazquez-Abrams



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!