This form:

<form action=""
<label>Family name:	
    <input name='family' />
<p><label>Given name:	
    <input name='given' />
    <input name='address' />
<p><label>Zip code:	
    <input name='zip' />
    <input name='email' />
    <input name='telephone' />
    <textarea name='comments' />
<p><label><input type="submit" value="Send data" /></label></p>

Generates this submission:

Content-Type: application/x-www-form+xml

<formdata xmlns="">
 <field name="family" index="0">Smith</field>
 <field name="given" index="0">John</field>
 <field name="address" index="0">123 Nowhere Str.</field>
 <field name="zip" index="0">10003</field>
 <field name="email" index="0"></field>
 <field name="telephone" index="0">212-555-3248</field>
 <field name="comments" index="0">Web Forms 2.0 is cool.</field>

The index increments as necessary to handle repeating fields with the same name.

Previous | Next | Top | Cafe con Leche

Copyright 2007 Elliotte Rusty Harold
Last Modified February 3, 2007