P2P | IT Discussions Forum

Full Version: maths on websites
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do you make a website do addition, subtraction, multiplication, and division?

I.E., a website allows you to enter 4 numbers into 4 different fields. It will show the results of the arithmetic on a results page.

Anyone know how to do this?
I didnt understand What are you talking of?Give some more informations and where did you see it?Are you asking how to make it act like a calculator?Seems that someone will surely come and answer your question.
use javascript man.....

it is very easy...
or u can go to start-->programs-->accesories--> calculator
you wont need a website for that
u can do all your calculations online
oops,
i m sorry
i meant offline
not online.............
I dont think we really understand what yo are asking for. You could just use a calculator.
You can use JavaScript for that or PHP and other programming languages, but JavaScript will do just fine.

Here's a link to a really good JavaScript tutorial:
http://www.w3schools.com/js/default.asp

I didn't post the code that could do that because I think it would be very useful foru you to catch up with JavaScript and its features.

If you can't do it yourself I'll post the code here.

Good luck with learning JavaScript!
your are asking to create a website. is it?
If so, please go .php using this you can create
@ narendra64

If the page is only going to do simple maths calculations he doesn't really need PHP.
JavaScript could do just fine.
Reference URL's