You might look at ovid's very nice CGI course There are probably nicer ways to do this but this is what you asked for...
use strict; use warnings; use diagnostics; # you got this array from your Database... my @foo=qw(red blue green purple grey pink black); print "<SELECT NAME=test> \n"; foreach (@foo){ print "<OPTION VALUE=\"$_\"> $_\n"; }; print "</SELECT>";
In reply to Re: mysql values in select box
by mandog
in thread mysql values in select box
by drivle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |