If I understand you correctly you can't, at least not directly, because the php runs on the server before the page is sent to the browser, and the javascript runs in the browser after it's received. But there may be a way to do what you want to do, either write javascript into the output page to do it or else make a background ('AJAX') call to the server to do it.
|