Firehorse
26-03-2011, 06:11 PM
I need the buy now button on a site i'm developing to be the output value of a php form that is on the same page.
Right now this outputs the value I need in plain text on the page itself:
<?php echo $sum_total; ?>
But when I put it into the paypal form value I get an error when testing saying the value is incorrect.
<input type="hidden" name="amount" value="<?php echo $sum_total; ?>">
Does anyone know why this is happening and what I can do to fix it?
Right now this outputs the value I need in plain text on the page itself:
<?php echo $sum_total; ?>
But when I put it into the paypal form value I get an error when testing saying the value is incorrect.
<input type="hidden" name="amount" value="<?php echo $sum_total; ?>">
Does anyone know why this is happening and what I can do to fix it?