how to assign the html value to the php variable without post or get method
<p>in my program i had a php value $test = 2 using this value i done some operation 
for example: in my page i had a 2 block A and B and one select box. If the test value is A it enable the div A, if the value is B it hide div A and also i am able to show and hide the div using the select box onchange event. please check my sample code given below</p>

<pre><code>$test = $_GET["id"];

&lt;select name="hideme" id="hideme" onchange="enableme();"&gt;
&lt;option value="A"&gt;Show&lt;/option&gt;
&lt;option value="B"&gt;Hide&lt;/option&gt;
&lt;/select&gt;

if($test == 'A') {
&lt;div id="div1" name="div1"&gt;
xxxxxxxxxxxxx
&lt;/div&gt;
} 
</code></pre>

<p>Js Function :</p>

<pre><code>function enableme() {
if(document.getElementByID('hideme').value == "A") {
document.getElementById.style.display ="block";

} else {

document.getElementById.style.display ="none";

}
}
</code></pre>

<p>my issue is at fist time using the $test($_get) value it show the correct div but the on change event is not working because of , if condition. If i remove the if condition then it show div A even if the value of the $test is B. how could i handle both. Please Help me</p>
