Jump to content

Please help writing small php calculator for my website


VinceGledhill

Recommended Posts

Hello People.

 

I would like to build a small calculator in php for my website.

 

Basically what it does is give a form to the user that looks like this

warranty_workings.jpg

 

The formula is as follows.

number_from_box1

*

number_from_box2

 

=result1

 

then take result1

*52

 

=result2

 

now take 60,000

/result2

 

=result3

 

Take result3 and make it a number with only 2 decimal places

=result4

 

Then display the result on the form like this

 

Your warranty would be "result4" years

 

I know that there are some really good coders on here.  Please could one of you talented people tell me what is the php to do the above on my site?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.