Re: Form-based whatever (was: Form-based Device Input and Upload in HTML)

James Salsman <> posted an Internet-Draft:
>   the form.  However, this capability is limited because HTML forms 
>   don't provide a way to ask the operator to submit input from 
>   arbitrary sources such as audio devices like microphones.  Since 

This sounds great.  Actually, there are a lot more things that forms
could be used for than is the case today.  One is to turn HTML into a
spreadsheet viewer by implementing client-side calculations.  Has this
been discussed?  The same could be implemented in a Java applet, but I
think the forms way would be easier to use for plain mortals.

Today a form can look like this:

<FORM method=post action=script.cgi>
  <INPUT name=age size=10>
  <INPUT type=hidden name=currentyear value=1997>
  <INPUT type=submit value="Compute Your Birth Year" NAME="ComputeBirthYear">

And then the script.cgi would calculate which year the person was
born.  Instead, there could be new kind of input field "formula", like

  <INPUT type=formula name="birthyear" value="currentyear - age" >

The variable names in "value" refers to the "name" of other input
fields in the same form.  This formula "Input" field would not present
a true "input field", but the calculated number in digits.  The value
would be recalculated as soon as anybody inputs another value in the
other input fields.

The calculated value of this new "formula" type of input field would
be sent to the server and the CGI script together with the other

Practical uses would include calculating the sum value and due tax for
a shopping basket before submitting an order.


No, I do not intend to implement this, but I think it would be nice to

Lars Aronsson.
  Aronsson Datateknik 
  Teknikringen 1e     
  583 30 Linköping, Sweden      tel:+46-13-211720    fax:+46-13-211820

Received on Friday, 21 November 1997 10:25:41 UTC