
31/10/2003, 09:43
|
| | Fecha de Ingreso: octubre-2003
Mensajes: 58
Antigüedad: 21 años, 4 meses Puntos: 0 | |
Este es el codigo:
<form NAME="itemsform" action='estado.php'>
<table border="1" cellspacing="0" width="640" bgcolor="#E0E0E0" bordercolor="#FFFFFF" class="td">
<?php
include("variableprods.php");
$sql="select * from $table where(tipo = '$tipo')";
$result=mysql_db_query($basedatos,$sql,$link);
while($row=mysql_fetch_array($result))
{
echo("<tr>
<td width='120' valign='top' align='center'>
<img src='thumbnails/producto.jpg' border='0'>
</td>
<td width='340' valign='top'>$row[tipo]<br>
<small>$row[descripcion]
</td>
<td width='60' align='center' valign='top'>$row[precio]
</td>
<td width='50' valign='top' align='center'>
<input TYPE='value' NAME='agregar' VALUE='1' SIZE='3'>
</td>
<td width='70' valign='top'>
<input TYPE='submit' VALUE='Añadir' >
<input type='hidden' name='tipo' value='$row[tipo]'>
<input type='hidden' name='precio' value='$row[precio]'>
</td>
</tr>");
}
?>
</table>
</form>
En la pagina "estado.php" pido que me muestre tipo, descripcion,precio y cantidad($agregar), pero este último no me llega.
Ej:
Tipo Descripcion Precio Cantidad Total
LIbro LIbro1 25€ NaN.NaN
Como puedes ver no me llega la cantidad con lo que el total tampoco sale.
Mucas gracias. |