Re: [PHPLIB] cart help needed From: Teodor Cimpoesu (teo <email protected>)
Date: 10/25/99

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?
as per docs, $cart->start(); somewhere or put it in auto_init or
something
or just do it by hand $sess->register("cart");

-- 
CIMPOESU Teodor, Web Programmer

@ DIGICOM S.A. Bucharest, Romania @ Internet, site development @ teo <email protected>,+(401)-330.47.28

official home page ~ http://www.digiro.net/ Internet web page ~ http://internet.digiro.net/ - 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.