I'm a newbie so please be patient.
Want I want is take a mysql query with multiple rows of results. Identify each row in a repeated region (while). add a character and redeclare it so it can be used.
And insert it into an html form like this
<form method="POST"
action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/xxxxxxxxxxxx"
accept-charset="utf-8">
<input type="hidden" name="item_name_1" value="VAR"/>
<input type="hidden" name="item_description_1" value="<?php echo $VAR_0; ?>"/>
<input type="hidden" name="item_quantity_1" value="<?php echo $VAR_0;?>" />
<input type="hidden" name="item_price_1" value="<?php echo $VAR_0; ?>"/>
<input type="hidden" name="item_currency_1" value="USD"/>
<input type="hidden" name="item_name_2" value="VAR_1"/>
<input type="hidden" name="item_description_2" value="<?php echo $VAR_1; ?>"/>
<input type="hidden" name="item_quantity_2" value="<?php echo $VAR_1;?>" />
<input type="hidden" name="item_price_2" value="<?php echo $VAR_1; ?>"/>
<input type="hidden" name="item_currency_2" value="USD"/>
<input type="hidden" name="ship_method_name_1" value="Ground"/>
<input type="hidden" name="ship_method_price_1" value="<?php echo $ratetotal;?>"/>
<input type="hidden" name="tax_rate" value="0.07"/>
<input type="hidden" name="tax_us_state" value="Ga"/>
<input type="hidden" name="charset"/>
<input type="image" name="Google Checkout" alt="Fast checkout through Google"
src="http://checkout.google.com/buttons/checkout.gif?merchant_id=xxxxxxxxxxxxx&w=180&h=46&style=white&variant=text&loc=en_US"
height="46" width="180"/>
I have been told to do a for each loop array, but that is a little advanced for. Please help me understand.