Re: [PHPLIB] cart help needed From: Davor Cengija (davor <email protected>)
Date: 10/23/99

On Sun, 24 Oct 1999, Michael Waples wrote:

>I just got phplib working and was glad to find the cart class.
>I did the following as a test which i called test.php3
><?
>page_open(array("sess" => "Example_Session"));
>$cart->add_item("apple", 3);
>$cart->add_item("oranges", 2);
>$cart->add_item("potato", 1);
>$cart->show_all();
>$cart->remove_item("apple", 1);
>$cart->show_all();
>page_close;
>?>
>which prints as expected but how do I keep the session active and use
>the cart's content on another page?
>say for example i had test2.php3 with-
>
>$cart->remove_item("apple", 1);
>$cart->show_all();
>
>how would i link to it and what else would need to be on the page?

        If you have
page_open(array("sess" => "Example_Session"));

        at the beginning of each page and correctly set session
        management, items in the shopping cart should be transferred
        automatically between the pages.

-- 
      v
Davor Cengija
davor <email protected>
===================================
"Please allow 30 days for delivery"

- PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in the body, not the subject, of your message.