468,236 Members | 1,959 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,236 developers. It's quick & easy.

Sum

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
4 5782
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
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
"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
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.

Similar topics

3 posts views Thread by William C. White | last post: by
2 posts views Thread by Albert Ahtenberg | last post: by
3 posts views Thread by James | last post: by
reply views Thread by Ollivier Robert | last post: by
1 post views Thread by Richard Galli | last post: by
4 posts views Thread by Albert Ahtenberg | last post: by
1 post views Thread by inderjit S Gabrie | last post: by
2 posts views Thread by Jack | last post: by
3 posts views Thread by Sandwick | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.