Problem in assigning js value to php variable
<p>How can i assign a javascript value to a php variable,</p>

<p>This is what i want to do:</p>

<pre><code>&lt;?php
    $pag = echo "&lt;script language ='javascript'&gt;var pn =                 document.getElementById('t').value; 
            document.write(pn); &lt;/script&gt;";


?&gt; 
</code></pre>

<p>But getting error as: Parse error: syntax error, unexpected     T_ECHO</p>

<p>or is there any other way to do, but i want to assign that valur to php variable.
can somebody help here?</p>
