Q:

Adding 2 php input fields together

I am trying to create a php estimate form for my business. I have 4 input text boxes, being description, qty, unit price and total price. Is there anyway I can show in the total price box the sum of the qty and unit prices? Thanks for your help

A:

Do you mean while the user is filling out the form? In that case you'll need to do some javascript that handles the events on those two fields.
If you want to display the product of the two numbers in some summary page after the user has submitted the form, then it should look something like this:
echo $_POST['quantity'] * $_POST['unit_price'];

