mar10/fancytree — pull request #245 by burakcakirel (2014-06-04 08:44:53+00:00)
Title: Generate form elements with same name attribute

Issue :
Fancytree Options: checkbox = true

When fancytree embed in form and select one or more node from tree, it is generated form elements with the same name attribute. Please see the below
<*input type="checkbox" name="ft_1" value="node1" checked="checked">
<*input type="checkbox" name="ft_1" value="node3" checked="checked">

This causes that when the form post to the server, there is one value in $_POST global variable.
Solution :
If we change it's name attribute to "ft_1[]", all values are in array called "ft_1" in $_POST