+ 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😢😢
2 Respostas
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.
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)...