Shopping Cart script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Lalla
Forum Newbie
Posts: 3
Joined: Fri Apr 17, 2009 2:18 am

Shopping Cart script

Post by Lalla »

Can someone PLEASE help me !! :crazy:

i want to submit values from one web page to another web page

this is a shopping cart program,

a user selects items he/she wishes by checking the checkboxes provided.

then all these should go on to a shopping cart which is in another page.

and my web page consist of several pages, where the user can select alot of products from each page.
Last edited by Lalla on Fri Apr 17, 2009 3:03 am, edited 1 time in total.
charlestide
Forum Newbie
Posts: 3
Joined: Fri Apr 17, 2009 1:21 am

Re: Shopping Cart script

Post by charlestide »

there are two ways for that.
1. save the data for cart on the sever, such as SESSION or cache (file or memcache?), then you can get those data in another page from SESSION or cache.

2. post all data to the server on page redirecting.
first page post the data to second page, and second page show that on the view useing HIDDEN IINPUT, so second page can post all data to another page.

i think first way will be good selection
Post Reply