Passing JS to PHP

Posted on 16th Feb 2014 by admin

So I have the following
Code: <?php
getdetails(?><script type="text/javascript">document.write(jsvariable)</script><?php );?>
The idea is that the getdetails() will process the JS output rather than doing mysite.com?data=jsoutput as I REALLY REALLY RALLY dont want urls like that. So why cant I get it to work, I think I have a syntax problem with opening and closing the getdetails()

Any help appreciated

Other forums