Ver Mensaje Individual
  #5 (permalink)  
Antiguo 27/12/2009, 14:16
Avatar de shinta_snake
shinta_snake
 
Fecha de Ingreso: diciembre-2009
Mensajes: 70
Antigüedad: 14 años, 4 meses
Puntos: 0
Respuesta: consulta por funcion.

Código PHP:
<?
function rut($rut,$rutcv)
{
        
//realizo el enlace de conecion.
    
"SELECT $pat =c_apepaterno,$mat =c_apematerno,$nom =c_nombres FROM clientes WHERE c_rut='".quitar($HTTP_POST_VARS["rut"])."' AND c_rutcv='".quitar($HTTP_POST_VARS["rutcv"])."'";  
}
?>
<html>
<head>
</head>
<body>
R.U.T:<input  maxlength="8"  name="rut" id="rut" size="8"> - <input  name="rutcv" size="1" onBlur "rut()"><BR>
PATERNO:<input type="text"  name="pat" id="pat" ><BR>
MATERNO:<input type="text"  name="mat" id="mat" ><BR>
NOMBRES:<input type="text"  name="nom" id="nom" >
</body>
</html>
SORRY men... literalmente algo asi seria.... :S