Re: [Templates] setting input checked

2014-12-05 Thread Khalid Akram
Try: input class=radio type=radio name=recipe_type value=Warmup [% IF flags 16 %]checked=1[% END %] /Warmup From: Bill McCormick wpmccorm...@gmail.commailto:wpmccorm...@gmail.com Date: Fri, 5 Dec 2014 08:38:35 -0600 To: templates@template-toolkit.orgmailto:templates@template-toolkit.org

Re: [Templates] setting input checked

2014-12-05 Thread Khalid Akram
Even better would be: input class=radio type=radio name=recipe_type value=Warmup [% IF flags 16 %]checked=“checked[% END %] /Warmup From: Bill McCormick wpmccorm...@gmail.commailto:wpmccorm...@gmail.com Date: Fri, 5 Dec 2014 08:38:35 -0600 To:

[Templates] Problem with global variables

2012-09-17 Thread Khalid Akram
Hi, I've set up a template with a global var as follows: my $tt = Template-new( { VARIABLES = { username = 'Simba', }, RELATIVE = 1, } ) || die $Template::ERROR\n; In my template I do this: This is a menu.html file: lia href=spanLogged in as: [% username %]

[Templates] How to use multiple checkboxes with the same name in TT / Perl?

2012-06-28 Thread Khalid Akram
Hi, I am having an issue using multiple checkboxes with the same name with TT. If I have some checkboxes like this: input type=checkbox name=options value=1 input type=checkbox name=options value=2 input type=checkbox name=options value=3 If I select 3 of these and submit, what gets posted to