Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Calculations

Posted by: Scatman Mar 4 2009, 02:41 PM

I am brand new to html and need a hand. I want to have a column of input fields with a column to the right which multiplies the number entered in the input field by a fixed price, and a total field at the bottom of the input column which totals the entries above. Heeeelp! huh.gif

Posted by: pandy Mar 4 2009, 02:45 PM

Well, HTML can't do that. It's a mere markup language, not a programming language, so it can't really *do* things, make stuff happen. Sounds like a case for JavaScript if it isn't very important. If it is you should use some kind of server side scripting. smile.gif

Posted by: Scatman Mar 4 2009, 03:20 PM

QUOTE(pandy @ Mar 4 2009, 07:45 PM) *

Well, HTML can't do that. It's a mere markup language, not a programming language, so it can't really *do* things, make stuff happen. Sounds like a case for JavaScript if it isn't very important. If it is you should use some kind of server side scripting. smile.gif


Okydokes, ta! Any clues where to look for guidance? I don't know what server side scripting is!!!

Posted by: Darin McGrew Mar 4 2009, 04:56 PM

Well, there's http://htmlhelp.com/faq/html/docs.html#technology in the FAQ...

Server-side scripting is a program that runs on your server. Since it's on your server, you can control it and its behavior does not depend on browser configurations. Examples include PHP, CGI, and ASP.

Client-side scripting runs on the client (i.e., on the browser), which means that it may or may not run, depending on the browser configuration. JavaScript is the main client-side scripting language.

Posted by: Brian Chandler Mar 4 2009, 11:17 PM

QUOTE(Scatman @ Mar 5 2009, 04:41 AM) *

I am brand new to html and need a hand. I want to have a column of input fields with a column to the right which multiplies the number entered in the input field by a fixed price, and a total field at the bottom of the input column which totals the entries above. Heeeelp! huh.gif


What do you want to _do_ with the total when you have calculated it?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)