I have this list box code that works great, but I cannot seem to figure out how to configure it to print (display) the option selected by the user. If anyone would care to help me, I would be very grateful. Thank you..
print " <form action=test.cgi method=post>\n"; print " <center><select name='selected' size=1>\n"; print " <option value='$item1'> $item1</option>\n"; print " <option value='$item2'> $item2</option>\n"; print " <option value='$item3'> $item3</option>\n"; print " <option value='$item4'> $item4</option>\n"; print " <option value='$item5'> $item5</option>\n"; print " <INPUT type=submit name=submit value=Select\n"; print " </form><p><br>\n"; print " </select>\n"; print " <option selected value=> $input{'selected'}</option>\n";
In reply to Display (print) selected value by Donnie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |