How can I use the POST method to send this request?
lun = document.getElementById("lun").value;
lp = document.getElementById("lp").value;
url = "lun="+lun+"&lp="+lp;
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyState==4 && xmlhttp.status==200){
document.getElementById("login").innerHTML=xmlhttp.responseText;
}
else{
document.getElementById("login").innerHTML="Loading";
}
}
xmlhttp.open("GET",'login.php?'+url,true);
xmlhttp.send();