Hello
I’m a newbie of PHP and must develope a very simple shop cart (no pay functionality etc)
On every page I have up to 20 products (its dynamic depending on what area the vistor visits).
I thought I could do something like this…
1) The visitor choose numbers of one product and hit the button ‘add to shop cart’
2) on the page add.php I make a readrequest (POST) what has been submitted.
Lets say I have 20 products on one page and the visitor choose to submit item nr 4…how do I solve that when reading the request in add.php as I know I have to know which items that belongs to the form on the previous page so I can make a read request of submitted item.
Is there a way to solve this dynamicly…or do you recommend me to do this request through GET request?
Thanks in advance