I am tring to work out a price with VAT included based on a VAT rate the user enters. I want to display the result in a input box. Can I display the result of this as the user enters the VAT rate and price without clicking a button or resubmitting the form.
I am using this to work out the price with VAT.
<?php $taxprice = ($tax * $selling) ?>
$tax is the value of the input box where the user enters the tax rate.
$selling is the value of the input box where the user enters the price.
$taxprice is the value I want displayed in an input box as the user enters the values for the other two fields.
I cant get the sum to work live as the user enters the two values without using a button. Does anybody know how to do this? Thanks Jon :)