On a result page i have listing the matching 'albums' it basically outputs a few things for each result (each matching album)
-link to detail page
-add to cart link
this is a fake little project just for learning and the add to cart button does not yet do anything but i would like it to.
How can i make it so that when that 'add to cart' link is clicked a session / cookie is set containing that particular albumname or albumid.
Then later after you when you go to the fake checkout page the albums you previously 'added to cart' are listed.
It is after all just fake and for playing with, i figure there is a simple way to do it right?
on the checkout page all i have to do is something like:
SELECT albumName artistName etc
WHERE albumID = '#session.albumid#' ?
the question here is wether i use a session (dont know much about it) and how to get it to set the session when i click add to cart?