Possible Duplicate:
How to get javascript function data into Php variable
I am writing a code in javaScript. in that I need to call the php function.
But the problem is again I have to pass the Javascript variable to the php function.
My javascrpt is as follows,(is this correct)
<script>
obj.value="0254"
if (obj2.value != -1)
{
var PLOptions= "<?php PLOptions(?>"+ obj.value +"<?php)?>"
}
</script>
Here PLOptions() is the php method and obj.value is the javascript variable.
please let me know, how can I achive this.