Ver Mensaje Individual
  #9 (permalink)  
Antiguo 07/05/2009, 10:39
thenewuser
 
Fecha de Ingreso: julio-2008
Mensajes: 24
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Problemas con "post" en PHP

Disculpen q sea tan molesto pero estoy con esto hace unos dias ya.

Use el isset() en las dos variables y ahora me tira otro error: "Undefined Variable":

PHP:

<html><body>
<?php

if (isset($_POST['quantity'])) {
$quantity = $_POST['quantity'];
}

if (isset($_POST['item'])) {
$item = $_POST['item'];
}

echo "You ordered ". $quantity . " " . $item . ".<br />"; //------> esta es la linea 12
echo "Thank you for ordering from Tizag Art Supplies!";

?>
</body></html>



ERROR:

Notice: Undefined variable: quantity in C:\wamp\www\process2.php on line 12

Notice: Undefined variable: item in C:\wamp\www\process2.php on line 12
You ordered .
Thank you for ordering from Tizag Art Supplies!


Alguna otra solucion?

PD: les pido q me ayuden con este ejemplo concreto por favor, ya q es bien simple y me ayudaria a entender cualquier otro.