Hey Glenn,
Yes, exactly! When an HTML form is submitted to the server, the information being passed it a hash of
"field_name1" => "value",
"field_name2" => "value",
"field_name3" => "value",
...
So if you had this:
This info would be send:
"person1" => "Bob",
"person2" => "Tom"
But if THIS was in your form:
Only this would be sent:
"person" => "Tom"
(Because the first field with the "person" name attribute was overwritten).
For checkbox groups and multi-select fields, you can submit multiple values for the same field name by appending a "[]" to the end of the name attribute. e.g.:
Then the server would receive this:
"people" => ("Bob", "Tom", "Jim")
Anyway, when parsing your form on step 5, Form Tools looks at all fields in the form and checks for fields with duplicate names. If there's more than one, it gets confused and doesn't know how to handle it - so it just lets you know via that message you posted.
All the best -
Ben
Yes, exactly! When an HTML form is submitted to the server, the information being passed it a hash of
"field_name1" => "value",
"field_name2" => "value",
"field_name3" => "value",
...
So if you had this:
Code:
<input type="text" name="person1" value="Bob" />
<input type="text" name="person2" value="Tom" />
This info would be send:
"person1" => "Bob",
"person2" => "Tom"
But if THIS was in your form:
Code:
<input type="text" name="person" value="Bob" />
<input type="text" name="person" value="Tom" />
Only this would be sent:
"person" => "Tom"
(Because the first field with the "person" name attribute was overwritten).
For checkbox groups and multi-select fields, you can submit multiple values for the same field name by appending a "[]" to the end of the name attribute. e.g.:
Code:
<input type="checkbox" value="people[]" value="Bob" checked />
<input type="checkbox" value="people[]" value="Tom" checked />
<input type="checkbox" value="people[]" value="Jim" checked />
Then the server would receive this:
"people" => ("Bob", "Tom", "Jim")
Anyway, when parsing your form on step 5, Form Tools looks at all fields in the form and checks for fields with duplicate names. If there's more than one, it gets confused and doesn't know how to handle it - so it just lets you know via that message you posted.
All the best -
Ben