asi lo hiceç
Código:
botonEnviar.onRelease = function () {
var theXml = new XML();
theXml.ignoreWhite=true;
theXml.campo1 = campo1.text;
theXml.onLoad = function(){
var nodes = this .firstChild.childNodes;
for(i=0;i<nodes.length;i++){
theList.addItem(nodes[i].firstChild.nodeValue,i);
}
}
theXml.sendAndLoad("http://127.0.0.1/php2/datos.php",theXml,"POST");
}
aqui el php
Código:
o si es que asi no se hace <?php $resultado1 = $_POST["campo1"]; echo "<?xml version=\"1.0\"?>\n"; echo "<resultado>"; echo "<resultado1>".$resultado1."</resultado1>"; echo "</resultado>"; ?>
saludos


