Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/04/2010, 07:35
Avatar de pcarvajal
pcarvajal
 
Fecha de Ingreso: enero-2002
Mensajes: 701
Antigüedad: 22 años, 3 meses
Puntos: 8
Respuesta: Realizar Select mediante ID de combo

aún así no te carga los valores en los inputs?

Código PHP:

<%
     
cod request.QueryString("txt_prod")

    
buscar "select * from producto where prod_cod = '"&cod&"'"
    
set rs con.execute(buscar)
    if 
not rs.eof then
        nom 
rs.fields("prod_nom")
        
precio rs.fields("prod_precio")
    
end if

%>  
<
input type="text" name="txt_nom" id="txt_nom" value="<%=nom%> " readonly />

<
input type="text" name="txt_precio" id="txt_precio" value="<%=precio%> " readonly />