Set PHP variable value from a Javascript Variable value without refresh
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/9789283/how-to-get-javascript-variable-value-in-php">How to get javascript variable value in php</a>  </p>
</blockquote>



<p>I am looking for help to set value of a php variable from javascript variable. </p>

<p>I tried these but nothing worked:</p>

<p>Try 1:</p>

<pre><code>&lt;script&gt;
&lt;?php $phpVar = ?&gt; jVar;
&lt;/script&gt;
</code></pre>

<p>Try2:</p>

<pre><code>&lt;?php $phpVar = echo "&lt;script&gt;document.write(jVar)&lt;/script&gt;";
</code></pre>

<p>Failed too.. </p>

<p>Please help.
Please help!</p>
