nlafferty has asked for the wisdom of the Perl Monks concerning the following question:
while (@row = $sth->fetchrow()){ ## Make our HTML look better if no data. $oid = " " if($oid eq ""); $date = " " if($date eq ""); $username = " " if($username eq ""); print <<HTML; <TR BGCOLOR="#FFFFFF"> <TD><FONT SIZE=2 FACE=ARIAL>$row[0]</FONT></TD> <TD><FONT SIZE=2 FACE=ARIAL>$row[1]</FONT></TD> <TD><FONT SIZE=2 FACE=ARIAL><B>$row[2]</B></FONT></TD> <TD><FONT SIZE=1 FACE=ARIAL> [<A HREF="out_form.cgi?$row[0]">Clock Out</A>] </FONT></TD> </TR> HTML } # End of while.
<FORM action=""><select size=10> HTML while (@row = $sth->fetchrow()){ ## Make our HTML look better if no data. $oid = " " if($oid eq ""); $date = " " if($date eq ""); $username = " " if($username eq ""); print <<HTML; <OPTION>$row[0] $row[1] $row[2]</option> HTML } # End of while.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to add objects in dropdown
by andreychek (Parson) on Oct 05, 2001 at 22:01 UTC | |
|
Re: Trying to add objects in dropdown
by perrin (Chancellor) on Oct 05, 2001 at 21:59 UTC | |
by nlafferty (Scribe) on Oct 05, 2001 at 22:17 UTC | |
by nlafferty (Scribe) on Oct 05, 2001 at 22:04 UTC | |
|
Re: Trying to add objects in dropdown
by higle (Chaplain) on Oct 05, 2001 at 21:57 UTC |