I have a PHP file, having HTML and JavaScript code also, I want to use the javascript variable value in the php code, Sample code is as follows:
<script>
function dropdown(){
var e = document.getElementById("im_position");
var strUser = e.options[e.selectedIndex].value;
}
</script>
<?php
$q = //here want to use strUser(javascript varible);
?>
How do I use it ? Help me..