Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/05/2009, 08:22
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 9 meses
Puntos: 2135
Respuesta: Problemas con "post" en PHP

Como te comento debes de comprobar que existan las variables antes de usarlas:
Código php:
Ver original
  1. <html><body>
  2. <?php
  3. if (isset($_POST['quantity'])) {
  4.        $quantity = $_POST['quantity'];
  5. }
  6. $item = $_POST['item'];
  7.  
  8. echo "You ordered ". $quantity . " " . $item . ".<br />";
  9. echo "Thank you for ordering from Tizag Art Supplies!";
  10.  
  11. ?>
  12. </body></html>

Saludos.