Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/perl/bin/perl print "Content-Type: text/html\015\012\015\012"; @cities = ("Seattle", "Odense", "Venice", "Lewes", "Olso"); # Here its no problem print "<select>\n"; print "<option>City Name</option>\n"; foreach $city (sort @cities){ print '<option value="'.$city.'">'.$city.'</option>'."\n"; } print "</select>\n"; # But here is my nightmare $test="<select><option>City Name</option>"; foreach $city (sort @cities){ print "<option value=".$city.">".$city."</option>"; } print "</select>\n"; print $test;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Select form Hell!
by Cody Pendant (Prior) on Jul 19, 2007 at 02:35 UTC | |
by Anonymous Monk on Jul 19, 2007 at 02:40 UTC | |
|
Re: Select form Hell!
by GrandFather (Saint) on Jul 19, 2007 at 03:06 UTC | |
|
Re: Select form Hell!
by perrin (Chancellor) on Jul 19, 2007 at 03:18 UTC | |
|
Re: Select form Hell!
by tinita (Parson) on Jul 19, 2007 at 11:48 UTC |