ASP - asp cargar y grabar

 
Vista:

asp cargar y grabar

Publicado por juan arminio (1 intervención) el 11/01/2010 21:49:21
Buenos dias, mi urgencia (siempre9 es la siguiente: leo una tabla de productos , ok, selecciono con un checkbox los que quiero grabar, (ya lo hice) no hay problema, PERO EN UN CAMPO TIPO INPUT TEXT NECESITO CARGAR LA CANTIDAD PEDIDA, Y NO me funciona, aqui esta la fuente. Gracias de antemano
<!-- #include file="db.asp" -->
<html>
<head>
<title>Prueba hotmail</title>
</head>

<body>

<Form method=post action= Recibir.asp>

<table>
<tr>
<td>Incluir</td>
<td>Código</td>
<td>Producto</td>
<td>Compra</td>
<td>Precio</td>
<td>Cantidad</td>
</tr>
<%
set rs = server.CreateObject("ADODB.recordset")
call openConn()
SSQL="Select cb,descprod,pvp1prod,catego,rango FROM productos ORDER BY descprod;"
rs.open Ssql, dbc

Do while not RS.eof
%>
<tr>
<td>
<input type="checkbox" name="variable" value="<%=RS("cb")%>">
</td>
<td>
<%=RS("cb")%>
</td>
<td>
<%=RS("descprod")%>
</td>
<td>
<%=RS("rango")%>
</td>
<td>
<%=FormatCurrency(rs("pvp1prod"),2)%></td>
<td><input type="text" maxLength="4" name="fquantity" size = 4 value="1"></td>
</tr>
<%
RS.MoveNExt
LOOP
rs.Close
%>
</table>

<input type=submit>
</Form>
</body>
</html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:asp cargar y grabar

Publicado por flashnet (10 intervenciones) el 12/01/2010 10:30:58
Hola,
Yo lo que veo que en ese input text siempre va ser 1, ya que tienes asignado value="1", espero que te sea de ayuda.

Saludo
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar