I am not sure I follow that ?
depending on which radiobutton is selected, depends on what I want the following to be, so i have changed the form:
<input name="radiobutton" type="radio" value="<?php echo row_main_image['price_1']; ?>" />
6 X 4 £ <?php echo $row_main_image['price_1']; ?> <br />
<input name="radiobutton" type="radio" value="<?php echo $row_main_image['price_2']; ?>" />
10 X 8 £ <?php echo $row_main_image['price_2']; ?> <br />
<input name="radiobutton" type="radio" value="<?php echo $row_main_image['price_3']; ?>" />
12 X 10 £<?php echo $row_main_image['price_3']; ?>
this prodces output like:
<input name="radiobutton" type="radio" value="18.00" />
I then made the change
<input type="hidden" name="amount" value="<?php echo $_POST['radiobutton'] ; ?>">
but when I post the form, I get the error message:
"The link you have used to enter the PayPal system contains an incorrectly formatted item amount."
on paypal