in reply to mysql values in select box
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>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: mysql values in select box
by Kanji (Parson) on Oct 08, 2001 at 05:34 UTC |