In the source code of a page on the internet, there is a Javascript variable containing JSON data that I would like to store in a variable in my PHP program.
Any idea ab
Okay If you want to store that javascript variable in PHP then, you might have to send that variable to any PHP file using GET or POST method with ajax.
you can send the var serializedForm = {"fields": ... } ;
in ajax as a post or get method and in ajax.php file get this variable under $_POST or $_GET
and save it to php variable.