Here is the problem. I have an HTML page that includes some javascripts. These scripts modify the HTML contents. Some PHP scripts are already in the same file. I want to pass some variables from Javascript to PHP script. If I use get or post, all changes made by javascript are removed and I only have the original HTML elements and whatever that PHP script does.
I want to keep the page as it is now (with javascript modifications), and in the same time use the PHP script to update a MySQL database. How can I do this?