Web Analytics Made Easy -
StatCounter autocompute or auto calculate - CodingForum


No announcement yet.

autocompute or auto calculate

  • Filter
  • Time
  • Show
Clear All
new posts

  • autocompute or auto calculate


    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


  • #2
    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

    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.