
17/10/2004, 04:55
|
 | | | Fecha de Ingreso: septiembre-2004
Mensajes: 468
Antigüedad: 20 años, 6 meses Puntos: 1 | |
Problema de Variable tengo una consulta en un array en una pagina X.php:
while ($art=mysql_fetch_array($resultado))
{ echo "<tr>";
echo "<th scope='col'><div align='left'>"."<span class='Estilo104'>
<form name='form1' method='post' action=''>
Comprar : <input name='txt_cantidad' type='text'
id='txt_cantidad' value='1' size='3' maxlength='3'>
<a href='cesta.php?action=add_item&id=$art[cod_art]'>
<img src='Imagenes/carrop.gif' width='23' height='24' border='0'>
</a>
</form></span>"."</div></th>";
echo "</tr>";
}
y cuando me voy a esta pagina para recoger las variables
cesta.php
la variable codigo lo recoge bien.... pero la cantidad no
Lo hago de esta manera:
cesta.php
<?php
$ar=$_GET["id"]; $qanti=$_POST["txt_cantidad"];
echo "Codigo Articulo :".$ar."<br>"; echo "Cantidad de articulos :".$qanti;
?> |