|
Posted by no on 11/22/06 11:32
On 22 Nov 2006 02:15:03 -0800, "Josh" <vijayjoshi4u@gmail.com> wrote:
>hi frns, i am makng a shopping cart.
>i just want to know that when items are added to the cart are they
>registered in session variabes or what???
>should i use sessions to keep track of which items has the user placed
>in the cart???
>
>which will be the most feasible way???
The most popular way is to use $_SESSION[] variables because they will
preserve data between page clicks. Create a few arrays and then create
a class that allows you to add to, remove from, update and reset the
arrays - easy. Just remember that changes to session variables are not
visible until you load the next page.
Use www.w3schools.com and www.php.net and Google to find all the
information you will need on how to do this.
Chris R.
Navigation:
[Reply to this message]
|