|
Rank: Starting Member
Groups: Registered
Joined: 3/14/2003 Posts: 1 Location: ,
|
I wrote a product page in php and mysql and now need to pass the price from mysql to paypal. Here is my code:
print "<form target=paypal action=https://www.paypal.com/cgi-bin/webscr method=post>";
print "<input type=hidden name=cmd value=_cart>
<input type=hidden name=business value=shan@cruzio.com>
<input type=hidden name=item_name value=Doctor Dotter's Mandela Magnets>
<input type=hidden name=item_number value=$row[filename]>
<input type=hidden name=amount value=12.00>
<input type=hidden name=no_note value=1>
<input type=hidden name=currency_code value=USD>
<input type=image src=http://www.doctordotter.com/images/cart.gif border=0 name=submit alt=Make payments with PayPal - it's fast, free and secure!>
<input type=hidden name=add value=1> ";
print "</TR><TR>";
print "<TR> ";
}
print "</TABLE>";
?>
any help would be greatly appriciated.
shannon
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
Sitepoint.com is a good PHP and MySQL informational site. Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|