Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/04/2004, 17:05
Avatar de midpunto
midpunto
 
Fecha de Ingreso: enero-2004
Ubicación: España Palma de mallorca
Mensajes: 118
Antigüedad: 20 años, 3 meses
Puntos: 0
aqui va el form..

Hola.... aqui esta el form que estoy usando:

<form action="formmail.php" method="get" enctype="application/x-www-form-urlencoded" name="frmCart" target="muestra">
<table width="100%" height="272" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td height="19" colspan="2" bgcolor="#006699">
<font face="verdana" size="1" color="white">
&nbsp;<strong>&nbsp;Cantidad</strong>
</font>
</td>
<td width="346" bgcolor="#006699">
<font face="verdana" size="1" color="white">
<b>Producto</b></font>
</td>
<td width="264" bgcolor="#006699">
<font face="verdana" size="1" color="white">
<b>Precio</b>
</font>
</td>
<td width="152" bgcolor="#006699">
<font face="verdana" size="1" color="white">
<b>Remover ?</b>
</font>
</td>
</tr>
<?php
while($row = mysql_fetch_array($result)){
// Increment the total cost of all items
$totalCost += ($row["qty"] * $row["pvp"]);
?>
<tr>
<td height="24" colspan="2" bgcolor="#FFFFFF">
<font face="verdana" size="1" color="black">
<font color="#FFFFFF">.</font>
<select name="<?php echo $row["itemId"]; ?>&familia=<? echo $_GET['familia'];?>&subfamilia=<? echo $_GET['subfamilia'];?>" onChange="UpdateQty(this)">
<?php

for($i = 1; $i <= 20; $i++)
{
echo "<option ";
if($row["qty"] == $i)
{
echo " SELECTED ";
}
echo ">" . $i . "</option>";
}
?>
</select>
<input name="Cantidad" type="hidden" id="<?php echo $row["itemId"]; ?>" value="<?php echo $row["qty"]; ?>">
</font> </td>
<td bgcolor="#FFFFFF">
<font face="verdana" size="1" color="#003366">
<?php echo $row["articulo"]; ?>
<input name="Producto" type="hidden" id="<?php echo $row["itemId"]; ?>" value="<?php echo $row["articulo"]; ?>">
</font>
</td>
<td bgcolor="#FFFFFF">
<font face="verdana" size="1" color="red">
<?php echo number_format($row["pvp"], 2, ".", ","); ?> </font><font face="verdana" size="1"><span class="Estilo1">&euro;</span></font> <input name="Precio" type="hidden" id="<?php echo $row["itemId"]; ?>" value="<?php echo number_format($row["pvp"], 2, ".", ","); ?>">
</td>
<td bgcolor="#FFFFFF" class="Estilo12">
<font face="verdana" size="1"><a href="cart.php?action=remove_item&id=<?php echo $row["itemId"]; ?>&familia=<? echo $_GET['familia'];?>&subfamilia=<? echo $_GET['subfamilia'];?>" class="texto Estilo14">borrar</a></font>
</td>
</tr>
<?php
}

// Display the total
?>
<tr>
<td height="19" colspan="5">
<hr size="1" color="white" NOSHADE>
</td>
</tr>
<tr>
<td height="28" colspan="3">
<font face="verdana" size="1" color="#66CCFF">
<strong><a href="catalogo_show.php?familia=<? echo $_GET['familia'];?>&subfamilia=<? echo $_GET['subfamilia'];?>">Agregar m&aacute;s Productos </a> </strong></font>
<font face="verdana" size="1"><strong><span class="Estilo4">- <span class="Estilo5">|</span>-</span><a href="../muestra_ofertas.php?familia=<? echo $_GET['familia'];?>&subfamilia=<? echo $_GET['subfamilia'];?>" target="muestra"><span class="Estilo4">..</span></a><font color="#66CCFF"></font></strong></font><a href="../muestra_ofertas.php?familia=<? echo $_GET['familia'];?>&subfamilia=<? echo $_GET['subfamilia'];?>"><strong>Ofertas del Mes</strong></a> <font face="verdana" size="1" color="black">
<input name="familia" type="hidden" id="familia" value="<? echo $_GET['familia'];?>">
<input name="subfamilia" type="hidden" id="subfamilia" value="<? echo $_GET['subfamilia'];?>">
</font> </td>
<td>
<font face="verdana" size="2" color="black">
<b>Total: <?php echo number_format($totalCost, 2, ".", ","); ?></b><b> &euro;</b>
<input name="Total" type="hidden" id="Total" value="<?php echo number_format($totalCost, 2, ".", ","); ?>">
</font>
</td>
<td><font color="#003366" size="2" face="Arial, Helvetica, sans-serif">&nbsp;
</font></td>
</tr>
<tr valign="middle" bgcolor="#B9DAF4">
<td width="152" height="23" valign="middle" class="Estilo5 Estilo6"><p class="Estilo11"><span class="Estilo8">..</span>Datos del Cliente </td>
<td colspan="3" valign="middle"><img src="../imagens/usuarios.gif" width="28" height="25"></td>
<td class="Estilo5 Estilo6"><!--DWLayoutEmptyCell-->&nbsp;</td>
</tr>
<tr valign="top">
<td height="19" colspan="5" class="Estilo5 Estilo6"><table width="100%" border="0" cellspacing="2">
<!--DWLayoutTable-->
<tr>
<td width="288"><span class="Estilo10">Nombre completo </span></td>
<td width="691"><span class="Estilo10">Comentarios</span></td>
</tr>
<tr>
<td height="24"><input name="Nombre" type="text" id="Nombre"></td>
<td rowspan="3" valign="top"><textarea name="Comentarios" cols="40" rows="4" id="Comentarios"></textarea></td>
</tr>
<tr>
<td height="20"><span class="Estilo10">e - mail </span></td>
</tr>
<tr>
<td height="24"><input name="Correo" type="text" id="Correo"></td>
</tr>
<tr>
<td height="20" colspan="2" valign="top"><hr size="1" color="white" NOSHADE></td>
</tr>
<tr>
<td><font color="#003366" size="2" face="Arial, Helvetica, sans-serif">
<input name="Submit" type="submit" class="boton" value="Realizar Pedido">
</font></td>
<td valign="bottom"><div align="left"><font color="#003366" size="2" face="Arial, Helvetica, sans-serif">
</font></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="1"></td>
<td width="75"></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</form>
</body>
</html>
<?php
}

?>


Gracias por responder...