Tengo que insertar un valor de un combobox en una BD.
El valor ya lo tengo capturado con JAVASCRIPT, pero no se que hacer ahora. Esto es lo que tengo:
Código:
Pero no hace nada... ¿esta esto bien? necesito enviar la variable numero al fichero test.php. function capturarNumero(){
var numero = document.getElementById("numero").value;
getDataServer(test.php, numero);
}
function getDataServer(url, vars)
{
var xml = null;
try {
xml = new ActiveXObject("Microsoft.XMLHTTP");
} catch(expeption) {
xml = new XMLHttpRequest();
}
xml.open("GET",test.php, true);
xml.send(null);
if(xml.status == 404) alert("Url no valida");
return xml.responseText;
}


