+ 1

How to store javascript variable data to mysql database?

I want to store a javascript variable data (which comes out from a mathematical calculation and user inputs) to MySQL database table. Somebody pls help me I'm stuck in this problem😢😢

29th May 2021, 4:47 PM
Shanu Biswas
Shanu Biswas - avatar
2 ответов
0
Try changing your span tags into input tags and then just try to change JavaScript in order to set the value attribute instead of the innerText Visit https://html-online.com/articles/javascript-variable-php-mysql-ajax-post-json/ https://stackoverflow.com/questions/42680852/how-to-store-javascript-values-into-mysql-database Hope this helps.
29th May 2021, 4:51 PM
‎ ຸ
0
you must rely on server sided language, and send the data either with an http request (if in data vomes from form fields) or an ajax call with js (if any data, including form data)...
29th May 2021, 5:00 PM
visph
visph - avatar