Home : Products : DBMan : Customization :

Products: DBMan: Customization: Re: [LoisC] Select field from external text file: Edit Log

Here is the list of edits for this post
Re: [LoisC] Select field from external text file
Hey Lois, try this..

Code:
|;
open(SELECT,"pteam.txt") || die "Can't open file";
@pteam_list = (<SELECT> );
close (SELECT);
print qq|<select name="PTeam">|;
foreach (@pteam_list) {
chomp $_;

if ($_ eq $rec{'PTeam'}) {
print qq| <option selected>$_</option>|;
} else {
print qq| <option>$_</option>|;
}


print "$_\n";
}
print qq|</select>

chmod

Last edited by:

chmod: Feb 19, 2002, 1:57 AM

Edit Log: