http://www.perlmonks.org?node_id=90760


in reply to Re: Re: Maintaining form state with HTML::Template
in thread Maintaining form state with HTML::Template

There may be a better way, but we use the same technique Arguile presented.

The only other method we tried was to use JavaScript to set the selected option based on another input. Nice if you like JavaScript, but I prefer the <TMPL_LOOP> version as it doesn't depend on what the browser does with the JS code.