use perl.
i am assuming you already have a cgi script you are working with...
print "<select size=1 name=names>\n";
open(FILE,"<namefile") or die $!;
while(chop(<FILE>)) {
print "<option value=\"" . $_ . "\">" . $_ . "\n";
}
close(FILE);
print "</select>\n";
On Fri, 23 Jun 2000, Yasin A. Vohra wrote:
> Date: Fri, 23 Jun 2000 10:03:12 -0500 (CDT)
> To: [EMAIL PROTECTED]
> From: "Yasin A. Vohra" <[EMAIL PROTECTED]>
> Reply-To: "Yasin A. Vohra" <[EMAIL PROTECTED]>
> Subject: input file
>
> Hello Everyone:
>
> Does any one know how to read a file(that contains names in a
> file, one name per line) and make it in an drop down box in html page ?
>
> Please help me out.
>
> Thanks.
>
> Sincerely,
> Yasin Vohra
> http://www.cs.utexas.edu/users/yasin ICQ # 42740166
> ---------------------------------------------------------------------------
> Junior Officer
> The Association for Computing Machinery (UTACM) http://acm.csres.utexas.edu
> Department Of Computer Sciences http://www.cs.utexas.edu
> The University Of Texas at Austin (UT) http://www.utexas.edu
> T. U. Taylor Hall 2.124 Austin Texas 78712-1188
> Phone 512 471 9522 Fax 512 471 8885
> ---------------------------------------------------------------------------
>
> ---------------------------------------------------------------------------
> Send administrative requests to [EMAIL PROTECTED]
--
tom carlile [EMAIL PROTECTED]
professional systems wrangler http://sacrilege.org
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]