Posted 22 August 2006 - 04:59 PM
Posted 22 August 2006 - 05:01 PM
Posted 22 August 2006 - 05:07 PM
I assume you're putting all of your items in a form. So when the action of the form that has the "add to cart" button should be something like "<form action="Cart_func.php?act=add" method="post">" Then of course your pid would be passed from the form itself, or however you're handling it.
Cart_func.php should be nothing but the processing of adding that item to the shopping cart and then the header() call to go to the actual cart page. This also provides the added bonus of not having the user hit refresh and add the item to the cart again.
I hope that all makes sense.
Info: PHP Manual
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users