how to pass the JavaScript variable to the php function
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/419240/how-to-get-javascript-function-data-into-php-variable">How to get javascript function data into Php variable</a>  </p>
</blockquote>



<p>I am writing a code in javaScript. in that I need to call the php function.</p>

<p>But the problem is again I have to pass the Javascript variable to the php function.</p>

<p>My javascrpt is as follows,(is this correct)</p>

<pre><code>&lt;script&gt;
obj.value="0254"
if (obj2.value != -1) 
{
       var PLOptions= "&lt;?php PLOptions(?&gt;"+ obj.value +"&lt;?php)?&gt;"
}
&lt;/script&gt;
</code></pre>

<p>Here PLOptions() is the php method and obj.value is the javascript variable.</p>

<p>please let me know, how can I achive this.</p>
