hey guys, i'm new here!
i would like to know
how to code the "Add to cart" ?
can someone help me please?

Recommended Answers

All 5 Replies

You need to be more specific otherwise you get just general response...

Here is how:
1) Post to correct forum
2) Be more descriptive on your problem
3) Show some effort

If you are talking about a web application

4) Learn about request, session
5) Learn about cookies
6) Learn about MVC (find the tutorial at the jsp forum)

Do you have a working web application were the user can login and view the items?

i was assigned to do a assignment which is to create a website selling movies.i used the GUI to create the "Add to Cart" button. But, i dont know how to code. I mean what should i code to let other people can click it to add the items they want to the cart??

Moving to JSP section

i was assigned to do a assignment which is to create a website selling movies.i used the GUI to create the "Add to Cart" button. But, i dont know how to code. I mean what should i code to let other people can click it to add the items they want to the cart??

Do you know jsp, or how to submit a request using form.
If yes then maybe you can have the button ("Add Cart") submit the form that has the items the customer has selected and after you retrieve them put their ids inside a cookies.
Or if it is required for the user to log in the session

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.