Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Math

Status
Not open for further replies.

DaProgrammer

Programmer
May 27, 2004
22
US
This may seem like a simple question to some of you, but how do you do simple math in HTML. For example....

I have 3 xml files with temperatures in them. I want when html file loads, it to average the 3 of them.

Thanks Much,
Eric
 
"This may seem like a simple question to some of you, but how do you do simple math in HTML"

The answer is: you don't.

HTML is a language for displaying stuff to a web browser - it can't do math or any other swishy stuff.

Things that can do math (and much more) are:
client-side script: usually javascript

server-side script: php / asp / jsp / cfm
server-side XSL

Hope this helps!

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top