View Full Version : autocompute or auto calculate

08-27-2011, 11:36 AM

can someone help me create an auto pro rata calculator where there are four [4] boxes. first box should be where we could enter the customer's plan [29,39,40 etc.] and it should be divided with what ever i will enter on the second box w/c will be for the number of days in a month [28,29,30,31]. the 3rd box should be where i can enter the number of days the cust. was able to use the service and it needs to be multiplied from box 2. 4th box should be a read only box where the pro rata will be displayed.


[box 1] divided "/" by [box 2] multiplied "*" by [box 3] equals "=" to box four


Philip M
08-27-2011, 01:37 PM
Once again,

This forum is not a free coding service. Show us the code you have written so far, and then doubtless someone will help you to correct/improve it. You will need to validate the input data carefully to ensure it is numeric and within the appropriate range.

It is your responsibility to die() if necessary….. - PHP Manual