Re: [htmltmpl] Using HTML::Template to prefill in values
Brought to you by:
samtregar
From: Daniel A. <dan...@sn...> - 2005-01-10 13:06:07
|
On Monday 10 January 2005 2:33 am, Michael Kraus wrote: > G'day all... > > I'm curious about using HTML::Template to pre-fill in form field values. > > What I'm currently using is this method > > <input name="my_input_box"<TMPL_IF NAME="my_input_box_value"> > value="<TMPL_VAR NAME="my_input_box_value">"</TMPL_IF>> > > This works great for filling in text boxes. However, how can this be > done for select boxes (drop-down lists)? > Have you considered using CGI::FormBuilder? It makes creating, populating and validating HTML forms a snap, and it's integrated with HTML::Template too. |