Re: [PHP] Here's a weird one!

2002-10-27 Thread @ Edwin
Hello, I think the problem lies here: > $qty = $formqty; > if($cart[$new]) > //$cart[$new]++; >$cart[$new] = $cart[$new] + $qty; > else > $cart[$new] = 1; > $total_price = calculate_price($cart); > $items = calculate_items($cart); > } It seems like you should b

[PHP] Here's a weird one!

2002-10-27 Thread Steve Jackson
I've been trying for ages to add a form field qty to an array to pass it to my shopping cart and have finally managed it but not quite. Please check this cart: http://www.violasystems.com/shop_testing/ When you add an item using the form text box it doesn't add more than 1 on the first submit. How