[development] Forms API and Array

Alessandro Feijó patrao at legendas.feijo.info
Thu Jan 10 21:39:49 UTC 2008


http://drupal.org/node/48643 ???


huge hug
Feijó


----- Original Message ----- 
From: "David Metzler" <metzlerd at metzlerd.com>
To: <development at drupal.org>
Sent: Thursday, January 10, 2008 12:49 PM
Subject: [development] Forms API and Array


> Does anyone know whether FAPI can create repeating input fields of  the 
> form:
>
> <input name="myfiled[]"/>
> <input name="myfield[]"/>
>
> Or some such equivalent.  I'd like the stuff returned in a 
> $form_values['myfield'] variable as an array of values
>
> I'm thinking about doing a custom helper function to accomplish this  but 
> would love to hear best some ideas about how to approach this.
>
> Dave



More information about the development mailing list