Is there a way to set a php variable via JavaScript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5948314/using-a-javascript-variable-to-set-php-variable">Using a javascript variable to set PHP variable</a>  </p>
</blockquote>



<p>I need to do something like this </p>

<pre><code>&lt;script type="text/javascript" charset="utf-8"&gt;
    '&lt;?php $something; ?&gt;' = $(".product_calculation").val();
&lt;/script&gt;

&lt;?php
  print "from js" . $something;
?&gt;
</code></pre>

<p>so i need to set a variable and then use it in php directly below after i set it</p>
