On May 29, 5:38 am, [EMAIL PROTECTED] (Alma) wrote: > > I am using apache2 & Gentoo linux. . i have a html upload.html > > <HTML> > <HEAD></HEAD> > <BODY> > <FORM METHOD="post" ENCTYPE='multipart/form-data'> > Photo to Upload: <INPUT TYPE="file" NAME="photo"> > <br> > Your Email Address: <INPUT TYPE="text" NAME="email_address"> > <br><br> > <INPUT TYPE="submit" NAME="Submit" VALUE="Submit Form"> > </FORM> > </BODY> > </HTML> > > but i am not able to view this html on my browser. > All other html pages are getting displayed. > > Its giving me this errors > > [Tue May 29 09:40:47 2007] [error] syntax error at /var/www/localhost/ > perl/upload.html line 2, near "HEAD>"\nBareword found where operator expected
This means that Apache believes the file upload.html is a Perl script not a static HTML document. Your Apache config probably states that _all_ files in /var/www/ localhost/perl/ are to be treated as Perl scripts. You should put the file elsewhere or change the Apache config so that it determines file- type by examining suffixes. (How you do this is an Apache issue - nothing to do with Perl). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/