html form with php, please help
Posted: Sun Jul 13, 2008 5:57 pm
i neede this information to be passed to google checkout but i am not as good with html as php and not quit sure of all the rules
i am not getting a hyperlink when i click on the picture so i know something is wrong, please let me know if you see it
sorry i wasnt quite sure how to tag this since its in and out of php and html so much
i am not getting a hyperlink when i click on the picture so i know something is wrong, please let me know if you see it
sorry i wasnt quite sure how to tag this since its in and out of php and html so much
Code: Select all
$product_set = get_cart($cookie_id);
while($row = mysql_fetch_array($cart_set))
{
<form method="POST"
action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/************"
accept-charset="utf-8">
<----as you can see below this i have name="item_name_"++ this is because i need the item_name_ to go up as we go through this while loop(this is also the same with all of the variables)--->
<input type="hidden" name="item_name_"++ value="<?php echo $row['product_id']; ?>"/>
<input type="hidden" name="item_quantity_1" value="<?php echo $row['qty']; ?>"/>
<input type="hidden" name="item_price_1" value="<?php echo $row['product_price']; ?>"/>
<input type="hidden" name="item_currency_1" value="USD"/>
<input type="hidden" name="ship_method_name_1" value="UPS Ground"/>
<input type="hidden" name="ship_method_price_1" value="10.99"/>
<input type="hidden" name="tax_rate" value="0.0875"/>
<input type="hidden" name="tax_us_state" value="NY"/>
<input type="hidden" name="_charset_"/>
<?php
}
?>
<input type="image" name="Google Checkout" alt="Fast checkout through Google"
src="http://checkout.google.com/buttons/checkout.gif?merchant_id=*************&w=180&h=46&style=white&variant=text&loc=en_US"
height="46" width="180"/>
</form>