W3C home > Mailing lists > Public > public-html@w3.org > January to March 2007

Brainstorming: more structured form submissions

From: Ben Meadowcroft <ben@benmeadowcroft.com>
Date: Thu, 29 Mar 2007 23:10:32 +0100
To: <public-html@w3.org>
Message-ID: <002201c7724f$13a08be0$0202a8c0@benspc>
An issue I have often come up against is wanting to provide an editable grid
for form submission. The current model of a name and value pair submission
can be problematic in this situation.

To work around this currently it is common to prefix or suffix a row
identifier to the names of controls with a "row".

I propose that we introduce new enctype value(s) and updated guidance on
user agent processing of form data and name attributes. The goal of this is
to provide support for submission of more structured form data, e.g. in XML
or even JSON notation for example.

I've attached an example of a form that would submit an XML document
describing the form data within the POST HTTP request body and also the
submitted XML document.

The concept underlying this example is that the target XML structure could
be derived from the HTML DOM structure of the form itself. This is not just
limited to table rows as in this example, but could also be fieldsets and
other structural elements as well.

Ben Meadowcroft

Received on Friday, 30 March 2007 02:48:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 30 March 2007 02:49:12 GMT