form : dynamically naming form elements
| From: | Luc Saint-Elie | Date: | Mon, 02 Jun 2003 21:38:51 +0000 |
| Subject: | form : dynamically naming form elements | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9639@lists.php.net to get a copy of this message | ||
Hello,
The context :
==========
To add in one step a bunch of members to a system, the administrator can upload a csv file containing a set of 3 fields : name, email and group.
When he clicks on send, the system displays a page with all the data for ultimate validation. To allow the administrator to make some changes the data is displayed in form fields.
My problem
=========
Everything is ok but the last form displaying the data fetched from the csv file.
The number of form fields is unknown and the from fields are dynamically created.
My Question
==========
What is the best strategy to generate dynamic names for these form elements ?
Thanks
Luc