How do I select the passed value of a field in an OPTION radiobutton
construct in HTML. I am trying to use a database edit screen, where one
field should be represented by drop down or radiobuttons. In other words,
the correct option should be "SELECTED" based on the previous value passed.
See simplified code below.
#=======my test.html
#!/usr/bin/perl
use HTML::Template;
my $template = HTML::Template->new(filename => 'test.tmpl');
$template->param(option => "Item Three");
print "Content-Type: text/html\n\n";
print $template->output;
#=======my test.tmpl
<HTML><HEAD><TITLE>Test Template</TITLE></HEAD>
<BODY>
<SELECT NAME="option">
<OPTION VALUE="Item One">One
<OPTION VALUE="Item Two">Two
<OPTION VALUE="Item Three">Three <!-- need a SELECTED after OPTION
</SELECT>
</BODY>
</HTML>
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]