> I was wondering if it possible to construct an HTML form such 
> that the back end automatically creates a hash (or an array) 
> based on the naming scheme.
> 
> For example...
> 
> <form>
>    <input name="items[0][name]" value="...">
>    <input name="items[0][description]" value="...">
>    <input name="items[1][name]" value="...">
>    <input name="items[1][description]" value="...">
>    ...
> </form>
> 

Have a look at CGI::Expand : it will translate your fields into a data
structure
with hashrefs and arrayrefs. The structure is given through dot
notation.
Works very well.

Regards, L. Dami

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to