Quote:
Originally Posted by shabbir
You are trying to subtract two numbers in PHP but this can simply be done in plain and simple HTML
See
Code:
<INPUT TYPE="text" NAME="qty1" Value="">
<INPUT TYPE="text" NAME="qty2" value="">
<INPUT TYPE="text" NAME="res" value="">
<INPUT TYPE="submit" onClick="res.value=qty1.value-qty2.value">
Now I understand that you have some added things to be done in PHP and for that you have to use the POST to get the value, do the calc and then show again.
i want to happen is after I enter numbers in input and output and I press enter the result would be show in qty eventhough the next to output is id#