. Users fill in a form which has items of furniture, so they enter a number next to each item of furniture. The HTML uses text fields.
When the form is submitted, the form is submitted to a php script that emails the results to myself.
My code so far (which doesnt work)
var sofa_3_seater = document.getElementById('sofa_3_seater').value*45;
var sofa_2_seater = document.getElementByID('sofa_2_seater').value*30;
var armchair_large = document.getElementByID('armchair_large').value*15;
document.getElementByID('total').value = total;
I have used a hidden field for the total value:
<input type="hidden" name="total" value="">
THen I want it all to be posted to the PHP script and email everything to me, including this newly calculated total field!