ElectusUnum
Technical User
I know this is a newby problem, but I'm really stumped. Can some kind soul help? I wrote this program to write HTML form data to a text file (for my counter-strike gaming "clan"
. Everything goes fine, the text is written to the file. It executes fine using perl at the command line (windows xp). The only problem is, after I hit submit (and the data is written!) I get the evil "premature end of script headers message"! The html is at
#! C:/perl/bin/perl.exe -w
use strict;
use CGI qw
all);
use Fcntl qw
flock);
#Location of text file
my $text="c:/web/http/apache2/htdocs/blam/admin/applications.txt";
open(TXT, ">>$text"
;
print TXT "Name: ", param('name'), "\n";
print TXT "Email: ", param('email'), "\n";
print TXT "Why I want to be in BLAM!:\n ", param('why'), "\n";
print TXT "\n\n\n___________\n\n\n";
close(TXT);
#! C:/perl/bin/perl.exe -w
use strict;
use CGI qw
use Fcntl qw
#Location of text file
my $text="c:/web/http/apache2/htdocs/blam/admin/applications.txt";
open(TXT, ">>$text"
print TXT "Name: ", param('name'), "\n";
print TXT "Email: ", param('email'), "\n";
print TXT "Why I want to be in BLAM!:\n ", param('why'), "\n";
print TXT "\n\n\n___________\n\n\n";
close(TXT);