By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,785 Members | 1,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,785 IT Pros & Developers. It's quick & easy.

Sum

P: n/a
C3
How to sum two numbers in input boxes in html code by pressing a button and
show sum of these numbers.
Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
C3 wrote:
How to sum two numbers in input boxes in html code by pressing a button and
show sum of these numbers.


Can't be done with "html code".

You'd need to do it client-side (ie on the user's machine) with
Javascript, or server-side with something like PHP.

--
Mark.
Jul 20 '05 #2

P: n/a
in post: <news:zd*******************@stones.force9.net>
Mark Tranchant <ma**@tranchant.plus.com> said:
How to sum two numbers in input boxes in html code by pressing a button and
show sum of these numbers.
Can't be done with "html code".
You'd need to do it client-side (ie on the user's machine) with
Javascript, or server-side with something like PHP.


or do it with both so if JS is unavailable its then done server side.

--
b r u c i e
Jul 20 '05 #3

P: n/a
"Mark Tranchant" <ma**@tranchant.plus.com> wrote in
comp.infosystems.www.authoring.html:
C3 wrote:
How to sum two numbers in input boxes in html code by pressing a button and
show sum of these numbers.


Can't be done with "html code".


There seems to be widespread misconception about what HTML and CSS
are. Somehow people seem to think that they are both complete
programming languages, or perhaps that they are both magic.

When somebody ask a question like the OP's, it's not possible to
answer because the question itself is so wrongheaded. (I'm not
putting down the OP for ignorance: we all start out ignorant.)

We see frequent requests to do this or that completely irrelevant
thing in HTML or CSS, where people seem to know no more than the
four or three letters.

Is there any nice words-of-one-syllable explanation, in no more than
two paragraphs, that we could refer people to?

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #4

P: n/a
On Mon, 24 May 2004 10:30:56 -0400, Stan Brown
<th************@fastmail.fm> wrote:
There seems to be widespread misconception about what HTML and CSS
are. Somehow people seem to think that they are both complete
programming languages, or perhaps that they are both magic.


There are words on this TV. Sounds like magic to me, evil witchcraft even
;)
Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.