Re: [SMARTY] form : dynamically naming form elements

From: Date: Tue, 03 Jun 2003 07:00:32 +0000
Subject: Re: [SMARTY] form : dynamically naming form elements
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9640@lists.php.net to get a copy of this message
i think using 3 arrays would be best for sth. like that: see http://www.php.net/manual/en/faq.html.php#faq.html.arrays on how to do it. i'm missing the relation to smarty, though. use php-general for stuff like this. greetings messju On Mon, Jun 02, 2003 at 11:38:51PM +0200, Luc Saint-Elie wrote: > 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

« previous php.smarty.general (#9640) next »