I have a shopping cart script which adds to a list and allows people to select item numbers in small input boxes. The cart can be checked out here:
www.assetguard.ws/services.html
Everything works flawlessly in IE and Netscape, but for some reason it doesnt work in AOL 7.0. According to some testers, the variable ammount is returned as 0, instead of the ammount of items chosen, and in turn an error message is discplayed instead of checking the person out.
Each item has a PIN number, and when it is added to the cart, a small input box is generated with the number 1 as default. At checkout, if you set this to 0, or anything other than 1 and above, it gives you an error message.
The name of this field is generated with PHP. Its basicaly get "x" and add the PIN number to the end for each item. So for item 10, the input box code would be:
<input name=x10 value=1 size=2>
Now the the only thing that determines wether $ammount is 0 or other, is on the checkout.php itself. The code is this:
$x = "x".$rpin;
$ammount = (int)$$x;
Im thinking maybe its the double variable. Any help would be appreciated.