Presently,
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript">
$.get("http://[somewebsite]", function (response) {
$("#somevalue").html(response.somevalue);
}, "jsonp");
</script>
up in the body of the source returns a somevalue
variable that is then used like this within the page:
<div id="somevalue"></div>
and the underlying value is successfully printed out. But down below further in the source I have some PHP coding that I would like to employ that variable in. If in that later PHP coding I want to take <div id="somevalue"></div>
(merely writing somevalue
just outputs string literal "somevalue" in the html), and assign the value to n
for use inside the PHP, how is such an instruction written? Thanks for any help.