I have some fields that feed into a PayPal form, one being {price}. Now the need is to create a second form on the same page with a different price, which is always a certain amout greater than the original price (e.g. $10 more).
The aim is to make use of the original {price} to create the new price, rather than having to go through all entries (hundreds of them) adding in a new value in a new field.
I’m no programmer, but all I could think of was to create a PHP variable from the {price} field, then add the extra amount and output the variable in a new form. I couldn’t get it to work, though. I set the PHP to run on output, but it still baulked at the EE code. E.g. it rejected the { here:
<?php $newPrice = {price} + 10; ?>
Does anyone know a way to create a new value based on what’s already in {price}?