redarrow Posted July 8, 2006 Share Posted July 8, 2006 i am going to build a paypal system that when a user has paid the user receves a random number to enter into the website but i dont get the part where the user gets the number then paypal gives it back.how the hell does it work. Link to comment https://forums.phpfreaks.com/topic/13991-solved-paypal-session-understanding-please-please-cheers/ Share on other sites More sharing options...
redarrow Posted July 8, 2006 Author Share Posted July 8, 2006 got it ok cheers.<html><head><meta http-equiv="Content-Language" content="en-us"><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Purchase Product</title></head><body bgcolor="#669900" link="#FFFF00" vlink="#FFFFFF"><?$sql = "SELECT * FROM PRODUCTS where ID=" . $ID;$result = @mysql_query($sql);while ($row=mysql_fetch_array($result)){?><form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_xclick"><input type="hidden" name="business" value="[email protected]"><input type="hidden" name="item_name" value='<?php echo($row['description']) ?>'><input type="hidden" name="item_number" value='<?php echo($row['id']) ?>'><?$Cost = $row['price'];$SandH = $row['weight'] * $ship_factor;$Price = $Cost + $SandH;?><input type="hidden" name="amount" value='<?php echo($Price) ?>'><input type="hidden" name="no_note" value="1"><input type="hidden" name="currency_code" value="USD"><input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"></form><?}?></body></html> Link to comment https://forums.phpfreaks.com/topic/13991-solved-paypal-session-understanding-please-please-cheers/#findComment-54627 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.