I am very new to php.
After all comments below i have changed the question and i have tried with ajax as per the suggestion
<script type="text/javascript">
function getval(sel) {
var get= sel.value;
alert(get);
}
</script>
I have tried :
<script type="text/javascript">
var a=get;
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 200) {
alert( xhttp.responseText)
}
};
xhttp.open("GET", "?a="+a, false);
xhttp.send();
</script>
But i did not get output.
Facing issue in xhttp.open all the code are in single page so i have not given any path.