function getData(des, poid, divid){
$.ajax({
type: 'GET',
url: 'loaddata.php?des=' + des + '&poid='+poid, //call storeemdata.php to store form data
success: function(data) {
var ajaxDisplay = document.getElementById(divid);
ajaxDisplay.innerHTML = data;
}
});
}
//Function call
<select name="descr" id="descr" onchange="getData(this.value,this.value, 'displaydata')">
This is the code and I passed multiple values in url. when I try to echo those values in next page it echo only one value (des) two times.Any help would be appreciated.
$slno = $_GET['des'];
$poid = $_GET['poid'];
echo $slno;
echo $poid;