Código php:
Ver original
<!-- <html> <head> <title>CATALOGO ELLAS</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript"> function vacio(valor){ if(valor.value==""){ alert("Tiene que ingresar una cantidad!"); valor.focus(); return false; } return true; } </script> </head> <body> <table> <tr> <td> <table> <form name="form" method="post" action="agregacarElla.php?<?php echo SID ?>" onSubmit="return vacio(this);"> <tr> <td> <input type="text" name="cantidad" value="<?php echo $cantidad ?>" size="2" maxlength='4' onKeypress="return acceptNumNumero(this)">par(es) <input type="hidden" name="id" value="<?php echo $row['id']; ?>"> <input type="hidden" name="pagina" value="<?php echo $pag ?>"> </td> <td> <input name="imageField" type="image" src="img/icono-compras.gif" width="31" height="28" border="0" alt="Agregar al Carrito"></td> </tr> </form> </table> </td> </tr> </table> </body> </html> -->
Muchas gracias por sus respuestas,