Hi. I am trying to set up a shopping cart with paypal.com. They provide the code to work with there site, but I can not get one of my data variables to pass through correctly. This is what I have:
<?php
print("<select name=basket_size>");
if($row[6] > 0)
{print("<option value=$row[6]>Small.....$row[6]");}
if($row[7] > 0)
{print("<option value=$row[7]>Medium...$row[7]");}
if($row[8] > 0)
{print("<option value=$row[8]>Large.....$row[8]");}
?>
</select>
<a href="#" onclick="window.open('https://www.paypal.com/cart/add=1&business=wiyb%mydomain.net&item_name= <?php print("$row[1]"); ?> &item_number= <?php print("$row[0]"); ?>&amount= basket_size&return=http%3A//completed.com&cancel_return=http%3A//cancel.com&no_note=1','cartwin','width=600,height=400,scrollbars,location,resizable,status');"><img src="http://images.paypal.com/images/sc-but-03.gif" border="0"></a>
The problem I have is with the AMOUNT value, which I am trying to pass through with the drop down box that shows the small, medium, and large prices.
Thanks in advance for any help. I am trying to get this up and running while I figure out sessions for later.
Mike