PayPal paynow button price from variable
I am wondering if you can get the price for a paypal buy now button from a hidden field on a previous page form that redirects to the page with the paypal buy now button.
I tried this in the price input on the paypal form
<input type="hidden" name="amount" value="<?php echo((isset($_POST["hiddenFieldad_price"]))?$_POST["hiddenFieldad_price"]:"") ?>" />
It didn't work. When taken to paypal it has no price and a text field for the user to enter a price.
thanks for your help,