I am setting up a payment system for my site using paypal, i have the script to create the button to create the invoice for the customer, but i need to add the correct details in to the HTML for the button . I have a form in which i will get these varbiles from, but for testing purpuses i have created teh varbiles at the top. here is my code
<?php
$OrderName == "Chris Harries";
$amount == "15";
?>
<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
<input type='image' src='https://www.paypal.com/en_US/i/btn/x-click-but20.gif' border='0' name='submit' alt='Make payments with PayPal - it's fast, free and secure!'>
<input type='hidden' name='cmd' value='_xclick-subscriptions'>
<input type='hidden' name='business' value='shikane@blueyonder.co.uk'>
<input type='hidden' name='item_name' value='<?php echo "$OrderName" ?>'>
<input type='hidden' name='no_shipping' value='1'>
<input type='hidden' name='no_note' value='1'>
<input type='hidden' name='currency_code' value='GBP'>
<input type='hidden' name='a3' value='<?php echo "$amount" ?>'>
<input type='hidden' name='p3' value='1'>
<input type='hidden' name='t3' value='M'>
<input type='hidden' name='src' value='1'>
<input type='hidden' name='sra' value='1'>
</form>
The problem is in the 2 values i have which are varbiles all i get in the source once i run the page is
<input type='hidden' name='item_name' value=''>
on both values. Any help
Thanks
Chris