0

i am building a simple online portal and i have done all the login ,registration pages and all the fields successfully get uploaded in the database but now

all i got is a product display page and an shopping cart

1. i want help is how do i pass the information from the product page to cart page
2.concurrently update in the database i.e. mysql
3.if customer wants he can remove a product from the cart.

can u help me with all..am wondering since 10 days now hope you guys help me out.thank you.

3
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by mulkave
0

Thanx the session thing just helped me out..i was able to make the cart too and update it but now the problem i face is


the checkout and ordering thing ... i want to pass the session variables of my cart to
the database and then let the user fill the shipping info and process the order if i get any sort of help on this will be thankful..

0

i am building a simple online portal and i have done all the login ,registration pages and all the fields successfully get uploaded in the database but now

all i got is a product display page and an shopping cart

1. i want help is how do i pass the information from the product page to cart page
2.concurrently update in the database i.e. mysql
3.if customer wants he can remove a product from the cart.

can u help me with all..am wondering since 10 days now hope you guys help me out.thank you.

Several answers could come handy for your request, I will try to mention few:

  1. Passing information to other pages could be done by either POST or GET requests in e.g. sending product id's and handling them with the $_POST, $_GET or $_REQUEST superglobals . Or you may store the chosen products in a temporary cookie/session and catch them at the cart page with $_COOKIE or $_SESSION
  2. You may update the database entries at the cart page when the request is received and validated. Or if you are heading to dynamic content and interval-based updates, you may need to use AJAX requests and jQuery is what I suggest using for that
  3. This depends on the method you used to update.
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.