Hi, my cgi compiles on the command line, but I get an internal server error when I try to access in the browser
use strict; use warnings; my $file_name=''; my $content=''; $file_name = 'testfile'; open TEXT, $file_name or die "couldn't open '$file_name' for reading: $!\n"; while (<TEXT>) { $content .= $_; } print<<EOF; Content-type: text/html <html> <body> <form method=post action="http://www.ramonred.net/cgi-bin/text.cgi"> <textarea rows=40 colos=67 name="box">$content</textarea> </body> </html> EOF # end of text.cgi I have made sure the permissions are set correctly. Any ideas what could be wrong? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of zentara Sent: Saturday, September 21, 2002 10:01 AM To: [EMAIL PROTECTED] Subject: Re: text/area editing On Sat, 21 Sep 2002 06:04:56 -0700, [EMAIL PROTECTED] (Ramon Hildreth) wrote: >Hi, >I would like to create a form that loads text into a text/area box for >editing. So far in the books that I have >I only see how you can post that is added to the text/area only. In my case >I would like the html or cgi page to load >with the text/area box already containing text. > print<<EOHTML; <html> <body> <FORM METHOD=post ACTION="http://www.example.com/foo.cgi"> <TEXTAREA ROWS=3 COLS=40 NAME="comments">4 score and 7 years ago.....</TEXTAREA> </form> </body> </html> EOHTML -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]