1.8

Table Of Contents
<left>122</left>
<top>253</top>
<type>dent</type>
</pin_0>
<pin_1>
<left>361</left>
<top>341</top>
<type>dent</type>
</pin_1>
</pinElm1>
</values>
Note
To enable submitting arrays, you need to check the Use PHP arrays option in the HTTP Server
user preferences in Workflow; see Workflow Online Help.
In case multiple fields with the same name are encountered the previous value is overwritten.
This way only a single occurrence of that field name will be available in the data containing the
value of the last encountered occurrence of that field. This behaviour is also seen in the PHP
language.
You can try out this feature with the COTG Time Sheet template, as explained in this how-to:
Using The PHP Array Option. The COTG Fields Table element (see "Fields Table" on
page524) in that template has an Add button to add rows to a table, and groups data following
this approach.
Getting the status of unchecked checkboxes and radio buttons
Unchecked checkboxes and radio buttons are not submitted (as per standard HTML behavior),
so how to get the state of those checkboxes and radio buttons? A common approach to get the
state of unchecked checkboxes and radio buttons is to add a hidden field to the Form with the
same name as the checkbox or radio button, for example:
<input type="hidden" name="status_1" value="0" />
<input type="checkbox" id="status_1" name="status_1" value="1" />
When multiple fields with the same name are encountered, the previous value is overwritten.
This way the values for unchecked checkboxes and radio buttons can be processed easily.
Page 435