PHP add to session with button

I’m creating a basic shopping cart script , located at php/cart.php, with a GET for “action” and a switch for it that either adds or removes a variable from the $_SESSION, or unsets it altogether. What’s the easiest way to create a button that, when clicked, uses this script to manage the session items?

Also would it be better to try and refresh the div containing info from the session, or just refresh the whole page?

Leave a Reply


Hire Me
Follow Me!
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.