INFO: http://www.dhtmlgoodies.com/index.ht..._client_lookup
DEMO: http://www.dhtmlgoodies.com/scripts/...nt-lookup.html,
Gracias por la ayuda de antemano.
este code:
Código PHP:
Ver original
/* Replace the data in these two lines with data for your db connection */ $res = mysql_query("select * from ajax_client where clientID='".$_GET['getClientId']."'") or die(mysql_error()); echo "formObj.firstname.value = '".$inf["firstname"]."';\n"; echo "formObj.lastname.value = '".$inf["lastname"]."';\n"; echo "formObj.address.value = '".$inf["address"]."';\n"; echo "formObj.zipCode.value = '".$inf["zipCode"]."';\n"; echo "formObj.city.value = '".$inf["city"]."';\n"; echo "formObj.country.value = '".$inf["country"]."';\n"; }else{ echo "formObj.firstname.value = '';\n"; echo "formObj.lastname.value = '';\n"; echo "formObj.address.value = '';\n"; echo "formObj.zipCode.value = '';\n"; echo "formObj.city.value = '';\n"; echo "formObj.country.value = '';\n"; } }