Re: Simple HTML User Input and Process Output
- From: David Dorward <dorward@xxxxxxxxx>
- Date: Mon, 12 Sep 2005 20:55:14 +0100
W. D. Allen Sr. wrote:
> Does anyone have a simple HTML example of a user input of two numbers into
> a form and the display of the product of the two numbers?
HTML doesn't provide such a facility, the reliable way to achieve such a
thing is to provide a form with two input elements of type text, and one of
type submit.
http://www.w3.org/TR/html4/interact/forms.html
Then write a form handler in the server side language of your choice to
perform the addition. The specifics of such depend on the capabilities of
your server. http://www.cgi101.com/learn/ gives a basic introduction to the
principles of writing CGI scripts in Perl.
You could also look at client side JavaScript, but it is bad practise to
depend on it and it should usually only be considered as a convenience to
the user (e.g. to duplicate work that a server side program is already in
place to perform).
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
.
- References:
- Simple HTML User Input and Process Output
- From: W. D. Allen Sr.
- Simple HTML User Input and Process Output
- Prev by Date: Re: pull down menus
- Next by Date: Re: OT (?)... Don Henley Wants This Domain
- Previous by thread: Simple HTML User Input and Process Output
- Next by thread: Re: Simple HTML User Input and Process Output
- Index(es):
Relevant Pages
|
Loading