Tema: Pedidos
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/12/2002, 09:42
jordan
 
Fecha de Ingreso: noviembre-2002
Mensajes: 249
Antigüedad: 22 años, 5 meses
Puntos: 0
Bueno, parece ser que la cosa ha de funcionar + o - como he pensado.

El codigo que he hecho es este:

<%@ LANGUAGE=VBScript %>
<% DIM BD, RS, SQL
Set BD = Server.CreateObject("ADODB.Connection")
BD.Open "DSN=imateu.com.per"

Set RS = Server.CreateObject("ADODB.Recordset")

SQL = "SELECT * FROM per_art where familia='" & Request.QueryString("familia") & "'"
RS.Open SQL, BD

if RS.EOF then
Response.Redirect "default.htm"
end if
%>

<table>
<tr>
<td width="55"></td>
<td width="100">Referencia</font></td>
<td width="300">Descripción</font></td>
<td width="50"><p align="center">C/Caja</font></td>
<td width="50"><p align="center">P/Unid</font></td>
<td width="50"><p align="center">Cajas</font></td>
</tr>
</table>

<form name="control">

<table border="0">
<% Do While Not rs.EOF %>
<tr>
<% if rs("foto") <> "" then %>
<td width="55"><img src="./images/<%=rs("Foto")%>" name=imagen></td>
<%else%>
<td width="55"><font color="#000080" size="1">NO FOTO</font></td>
<%end if%>
<td width="100" valign="top"><% Response.Write rs("Referencia")%></td>
<td width="300" valign="top"><% Response.Write rs("Descripcion")%>&nbsp;</td>
<td width="50" valign="top"><p align="right"><% Response.Write rs("Cantidad")%>&nbsp;</td>
<td width="50" valign="top"><p align="right"><% Response.Write rs("Precio")%>&nbsp;</td>
<td width="50" valign="top"><input name="c_" size=3 style="float: right" ></td>
<td widht="10" valign="top"><a href=""><img src="go.gif" border="0"></a><tr>
<% rs.Movenext %>
</tr>
<% Loop %>
</table>

</form>


Esta es la página que biene del link con el valor de familia, para diferenciar los artículos que quiero que salgan.

Me pone todos los artículos y lo que no tengo claro es:

He puesto un link con la imagen "go.gif".

Aqui es donde no lo tengo claro, se que debo hacer el insert a la nueva tabla, pero como hago para ir a otro sitio y como cargo los valores?

Me he explicado bien?