how to get value into a php variable after setting value of textfield with javascript within same page
<pre><code> &lt;form name="demo" method="GET"&gt;
&lt;input name="test" value=""&gt;
 &lt;/form&gt;
   &lt;script&gt;
 document.demo.test.value=2;
&lt;/script&gt;


 &lt;?
$s=$_GET[test];
echo $s;

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