Re: [htmltmpl] Dynamic TMPL_VAR names? Is it possible?
Brought to you by:
samtregar
From: Douglas K. <dlk...@rh...> - 2002-08-13 23:09:07
|
On Tuesday 13 August 2002 02:54 pm, Fran Fabrizio wrote: > Hello! =A0What I'm wondering is if this is possible: > > <input type=3Dtext > =A0 =A0 =A0 =A0 =A0name=3Dsite_<tmpl_var site_id>_name > =A0 =A0 =A0 =A0 =A0value=3D<tmpl_var site_<tmpl_var site_id>_name> > > > We're trying to use the 'associate' feature, but the form field names > need to be unique each time we load the form (because the form may > have site_12345_name and site_67890_name this field can't be just > site_name) and thus the value=3D has to be formed the way I'm trying > above, which breaks HTML::Template. =A0Is there another way to achieve > this? Why not build up both variables is the script? Then you would then endup= =20 with something like this. <input type=3Dtext name=3D<tmpl_var site_id_name> value=3D<tmpl_var site_value_id_name> > just my 2 cents. Douglas |