Perdona mi arrogancia pero tal y como me dices solo me coge el valor en el div, dentro del form no se lo consigo pasar, he aui mi codigo:
Código PHP:
<form action="#" onsubmit="showAddress(this.address.value +' ,ES'); return false">
<input type="text" size="15" name="address" value="Orense" />
<input type="submit" value="BUSCA" /></form>
<form action="controlador/Insvivienda.php">
<div id="x"></div>
<script>
document.writeln('<input type="text" size="9" name="CX" value="' + document.getElementById("x").innerHTML + '" />')
</script>
tal vez tenga q usar algun comando para habilitar estas vbles??
Gracias x tu tiempo