Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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>

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://919848]
help
Chatterbox?
[oiskuu]: Very, very smooth btw. Now the talk is about "Your mothers pussy", and freezer implies "hungry for meat"
[Your Mother]: :P
[ambrus]: YourMother: my brother told me their cat wants to climb into the dishwasher if they leave the door open. Not when the dishwasher is started, but after it's done washing, because it's still warm and cats like warm.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (15)
As of 2017-12-18 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (491 votes). Check out past polls.

    Notices?