[htmltmpl] Generating dynamically named tags
Brought to you by:
samtregar
From: Dan H. <dan...@re...> - 2005-04-20 09:32:21
|
Hi All I'm writing a template for use with CGI:Application::Plugin::ValidateRM. C::A::P::VRM expects every field that requires validation to have a = matching field with an "err_" prefix (i.e err_field_name). My field names are dynamic, e.g. <tmpl_loop name=3Dapplication_parameters> <input type=3D"Text" name=3D"<tmpl_var name=3Dfield_name>" = value=3D"<tmpl_var name=3Dfield_value> </tmpl_loop> but I can't figure out the best way to specify the error field. = Obviously=20 <tmpl_var name=3Derr_<tmpl_var name=3Dparameter>>=20 doesn't work Any ideas appreciated Thanks Dan |