Hi I'm trying to integrate a google checkout button with a basic php variable - and am having trouble with formatting. Here is the code:
echo "<h2>" . $row['name'] ."</h2>";
echo '<form action="xxx" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" target="_top">
<input name="item_name_1" type="hidden" value="Item"/>
<input name="item_description_1" type="hidden" value="Watch Repair Service"/>
<input name="item_quantity_1" type="hidden" value="1.00"/>
<input name="item_price_1" type="hidden" value="1.00"/>
<input name="item_currency_1" type="hidden" value="USD"/>
<input name="_charset_" type="hidden" value="utf-8"/>
<input alt="" src="" type="image"/>
</form>';
I'm trying to replace the "value" with the database field named 'due', but I don't know how to properly place the variable within the input value field. I guess it's an issue with syntax. The issue is that the price fluctuates based on the customers particular repair job - and I need the google checkout button to be dynamic.
Any help would be greatly appreciated.
Thanks