make a php variable equal a javascript output
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4767498/how-to-pass-value-from-javascript-to-php-file">How to pass value from javascript to php file</a>  </p>
</blockquote>



<p>would something like this work?</p>

<pre><code>&lt;script&gt;
    var a;
    a = 5;
&lt;?php
    $b = ?&gt;a;
&lt;/script&gt;
</code></pre>

<p>I am wondering if I can have javascript parsed by the client-side and have the output information be picked up by PHP as a variable that can be used elsewhere.</p>
