nobuts 0 Newbie Poster

Hello Guys,
I'd like to build a ajax cart which is pass the product id, title and quantity to another div. Saying the user clicked 3 items. And I'd like those item to display on a cart like:

ID | Title | Qty
----------------
1 | Apple | 2
2 | Melon | 5
3 | Grape | 1

I know that it should use ajax to pass the value to php and give it a session (so it remains whether the page is refresh). But I don't know how neither find elsewhere.

Please give me a brilliant example script.

Thank you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.