Error"; echo "

You need to specify all the required fields!

"; //We need to print out the footer too, because we're exiting out of the script echo ""; exit; } //Read in variables from $_POST $price = $_POST['price']; $itemname = $_POST['item']; $quantity = $_POST['quantity']; ?>

Add to cart

Thank you for wanting a !

getName()] = $item; // $item->name; echo "

Your item has been added to the cart.

"; echo "Go to cart!"; ?>