Código HTML:
function veriHora1(){ var con; var lugarA = document.getElementById("lugarA").value; var dia = document.getElementById("dia1").value; var hri = document.getElementById("hri1").value; var hrf = document.getElementById("hrf1").value; if (window.XMLHttpRequest){ con = new XMLHttpRequest(); }else{ con = new ActiveXObject("Microsoft.XMLHTTP"); } con.onreadystatechange = function (){ if (con.readyState == 4 && con.status == 200){ document.getElementById("divError1").innerHTML=con.responseText; } } con.open("POST","veriHora1.php",true); con.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); con.send("dia="+dia+"&hri="+hri+"&hrf="+hrf+"&lugarA="+lugarA); }