Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: autocompute or auto calculate
08-27-2011, 10:36 AM #1
- Join Date
- Aug 2011
- Thanked 0 Times in 0 Posts
autocompute or auto calculate
can someone help me create an auto pro rata calculator where there are four  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
08-27-2011, 12:37 PM #2
- Join Date
- Jun 2002
- London, England
- Thanked 2,508 Times in 2,486 Posts
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
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.