Posted on 1998-10-26
Below is the description:
I have a form containing 4 text fields to allow users to enter data in currency form (i.e. $xxx.xx) and 1 field to get the number of years/months. 2 buttons, one to compute and the other to clear the fields.
Upon user clicking the "compute" button, the scripts will start to validate the fields to ensure that none contains non-digits. The script will also check that user enter the currency in the order of xxx.xx. User do not have to enter the "$' sign.
After successful validation, the script will take the sum of the 4 fields, multiply by 0.5%, multiply by the number of months (if in years, need to convert to months).
The result will be displayed on the same screen, preferably after the 2 buttons.
Hopefully someone can help me solve this problem. If you can provide me with all the codes, it'll be great! I need this urgently....can someone help?? Thank alot!