Save values in a variable coming from GET
Example:
$id = $_GET['id'];
$dados = array($id);
Doubt:
How do I save all IDs? Well, I'll use those IDs to identify which product was selected.
I created a shopping cart using SESSION, when I clicked on the product, it saves the data in the session, but when I click on the product, I am verifying that the value of the product is greater than the credit that the user has, is greater then it goes to page to finalize the purchase, otherwise it returns to the products page, but it will appear to the user the products that he selected, that is, I placed an icon of a VISA on top of the product. But to put this icon, I'm checking to see if the $ _SESSION ['product_id'] is equal to the id of the product