Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How do I select an option according to a specified value in HTML::Template::Pro?

by tinita (Parson)
on Aug 11, 2011 at 11:22 UTC ( #919848=note: print w/ replies, xml ) Need Help??


in reply to How do I select an option according to a specified value in HTML::Template::Pro?

Just for the records, if you have the possibility to use HTML::Template::Compiled and the plugin HTML_Tags:
Template:

<tmpl_html_option province>

Perl:
$htc->param( province => [ 'opt_2', # selected ['opt_1', 'option 1'], ['opt_2', 'option 2'], ], );
Output:
<option value="opt_1">option 1</option> <option value="opt_2" selected="selected">option 2</option>


Comment on Re: How do I select an option according to a specified value in HTML::Template::Pro?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://919848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-10-21 00:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (94 votes), past polls