i have created an HTML form that lets a user choose options of the 'radio type'. When they have made their choice and clicked on a button called calculate, the total of the values for the options they have clicked is displayed in a text box for submittinig to Worldpay.
The problem I have is this, I can get the final page to total all the amounts up and automatically insert the values into a text box. If the user selects say a radio button for the amount of £13.99, the correct amount will be in the text box, the calculation is also OK if multiple selections are made. My problem comes when the user clicks on just one button, if the value ends in '0', for instance £3.00 or £5.30 then the value displayed in the textbox is '3' or '5.3'.
Can anyone help me to format this so two decimal places show up.
I can supply the code I have if it will help?
Thanks for your time.
Simon M