I am now at the shopping cart stage of my final project for my PHP class and am having a problem involving a url encoded string.
Here is my string:
echo "<a href='cart.php?action=add_item&.'$isbn'.&qty=1'>Add Item To Shopping Cart</a>";
and here is relevant code from cart.php:
switch($GET["action"])
{
case "add_item":
{
AddItem($GET["id"], $GET["qty"]);
ShowCart();
break;
}
case "update_item":
{
UpdateItem($GET["id"], $GET["qty"]);
ShowCart();
break;
}
case "remove_item":
{
RemoveItem($GET["id"]);
ShowCart();
break;
}
default:
{
ShowCart();
}
}
I end up with zilch being passed to cart.php.
As always, help is appreciated - up front!
Thanks