+ 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 Answers
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