Here’s what I’m perplexing to do: we have a php page we combined upon a single domain, which stores report in a database. Next, we have an additional web page (This page is html NOT php) upon a Different domain which we call this php page regulating Javascript, as well as would similar to to lapse a non-static from a php page. How is this possible? we know it is, so do not contend which it isn’t! (10 points for a chairman which eventually answers this question!)
Ok, this makes marginally more sense. So, you want your PHP to return a variable to the JavaScript? Try a hidden field:
<input id="myHiddenField" value="myValue" type="hidden" hidden/>
and the js:
var value = document.getElementById(‘myHiddenField’).value;
if that is not the case, if you are trying to get a JS variable into PHP, that cannot be done.
PHP is a server side language, which means the code is DONE by the time the web page is displayed. JavaScript is a client side language, which means the code is executed ONCE THE PAGE IS LOADED.
Communication between client-side and server-side languages is limited, and one way (server-side->client-side via hidden field [crude]). I suggest you rethink your method…