Jump to content

Simple shopping cart not working - undefined index


CherryLips

Recommended Posts

I am building a shopping cart with three tables in one database and when I am trying to pass the quantity of an item to my product_handler file I am getting an undefined index error regarding my variable QTY.

 

I thought this error was due to the name being typed incorrectly because that's when I've seen this before, but I can't figure out why this isn't working.

 

Here is my error:

 

Notice: Undefined index: QTY in C:\xampp\htdocs\xyzlabs3\product_handler.php on line 4

 

I have attached the product page and the product_handler page and I'm hoping someone can help.

product.php

product_handler.php

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.