Canman2005 Posted November 27, 2008 Share Posted November 27, 2008 Hi all Wondering if someone can help me. Basically I have a form which has 2 fields Numbers (which on the form is called `number`) Real Number (which on the form is called `real_number`) I then have a price (which on the form is called `cost`) What I want to do is if in the number field there is the value 100 and the price value is 5 and someone enters into the real number the value 200, then it would calculate the price at 10 Again, if the number value was 1 and the price was 15 and the real number value was changed to 2 then the price would increase to 30 If for example the number value was 50 and the price was 10 and the real value number was changed to 25 then the price would come out at 5 Does that make sense? Can anyone help? Quote Link to comment Share on other sites More sharing options...
ratcateme Posted November 27, 2008 Share Posted November 27, 2008 this is really confusing but i think what you want is $real_number/$number * $cost Scott. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.