title: Set Session variable using javascript
body: <pre><code>   &lt;script type="text/javascript"&gt;
      function checkQuery()
      {
        var val = form1.proDown.options[form1.proDown.options.selectedIndex].value;
        var txt = form1.proDown.options[form1.proDown.options.selectedIndex].text;
        //alert(val+' | '+txt);
        &lt;?php $_SESSION['value1']= ?&gt; = txt; &lt;?php ; ?&gt;
       }
     &lt;/script&gt;
  </code></pre>
  
  <p>I have this code and it does not Work?
  Any One have solution for accessing javascript variable into $_SESSION[].</p>