I'm working on an app that sells items. Each items has differents informations about them and I'd like to store these informations in a PHP variable session when I click on a button (button that adds it to a 'bag'). I want to store them so I can reuse them to show the products in the bag on an other page.
How do I proceed to stock those infos in a session variable ?
In that exemple, I would like to store the Code, Dimensions and Forme value on the button click so I can reuse them in an other page.
<ul>
<li>
Code : Value from DB
</li>
<li>
Dimensions : Value from DB
</li>
<li>
Forme : Value from DB
</li>
</ul>
<button>
Ajouter à ma quotation
</button>