Date: 10/23/99
- Next message: Davor Cengija: "Re: [PHPLIB] cart help needed"
- Previous message: Shawn Patton: "[PHPLIB] New phplib searchable mailing-list archives"
- Next in thread: Davor Cengija: "Re: [PHPLIB] cart help needed"
- Reply: Davor Cengija: "Re: [PHPLIB] cart help needed"
- Reply: Kristian Koehntopp: "Re: [PHPLIB] cart help needed"
- Reply: Teodor Cimpoesu: "Re: [PHPLIB] cart help needed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
-
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.
- Next message: Davor Cengija: "Re: [PHPLIB] cart help needed"
- Previous message: Shawn Patton: "[PHPLIB] New phplib searchable mailing-list archives"
- Next in thread: Davor Cengija: "Re: [PHPLIB] cart help needed"
- Reply: Davor Cengija: "Re: [PHPLIB] cart help needed"
- Reply: Kristian Koehntopp: "Re: [PHPLIB] cart help needed"
- Reply: Teodor Cimpoesu: "Re: [PHPLIB] cart help needed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

