Re: [PHP] More on removing item from cart

2002-06-30 Thread Analysis Solutions
Hi Vicki: I'm not going to cover everything in the email. BUT, the essence of the solution is right here. I made a little test script based on the values you said were in the cart array at the top of the page and the variables contained in the form... #! /usr/local/bin/php -q ?php

Re: [PHP] More on removing item from cart

2002-06-28 Thread Vicki
Thanks to Jason and ³Sp² for the tip on ³print_r². After all the books I¹ve read, and all the scrounging through the manual, I¹m amazed I missed that one. It¹s VERY helpful! Thanks for your comments Dan. I¹ve actually spent quite some time trying to rework the cart because I agree that the

RE: [PHP] More on removing item from cart

2002-06-27 Thread SP
: Re: [PHP] More on removing item from cart On Thursday 27 June 2002 10:52, Analysis Solutions wrote: Hey Vicki: On Wed, Jun 26, 2002 at 11:01:31AM -0400, Vicki wrote: I'm checking the cart structure by printing the following code inserted right after the if($save); line (is this the best

Re: [PHP] More on removing item from cart

2002-06-26 Thread Vicki
Dan: Thanks very much for the detailed reply. I took most of this code from Welling and Thomson's book PHP and MySQL Development, (chpt. 25) but I'm trying to modify it to fit my purposes. The html is mostly theirs, and it's not the way I would write it, but it's working on my test machine.

Re: [PHP] More on removing item from cart

2002-06-26 Thread Analysis Solutions
Hey Vicki: On Wed, Jun 26, 2002 at 11:01:31AM -0400, Vicki wrote: I'm checking the cart structure by printing the following code inserted right after the if($save); line (is this the best way to check on the contents of an array?) while (list($key,$value) = each($cart)) { print

Re: [PHP] More on removing item from cart

2002-06-26 Thread Jason Wong
On Thursday 27 June 2002 10:52, Analysis Solutions wrote: Hey Vicki: On Wed, Jun 26, 2002 at 11:01:31AM -0400, Vicki wrote: I'm checking the cart structure by printing the following code inserted right after the if($save); line (is this the best way to check on the contents of an

Re: [PHP] More on removing item from cart

2002-06-25 Thread Erik Price
On Tuesday, June 25, 2002, at 04:28 PM, Vicki wrote: I have a shopping cart array $cart, with $artID as its key ($artID is an integer). $cart is set as a session variable. The cart prints to the browser with checkboxes next to each article and instructions to uncheck the checkbox and click