megabyte214
Programmer
I have a simple html form that when the user hits "Submit" goes to a cgi file. The cgi file makes a new text document and write the info from the form. When I run it from the command line it works fine, when I run it from the web I get an error that there is a configuration problem. My permissions are all set to 755.
Code:
use CGI;
my $r = new CGI;
my $name = $r->param('name');
my $entry = $r->param('entry');
my ($username);
$username = "$name.txt";
addLog($username);
sub addLog{
open(DATA,">$username") || die ("You have got an error..!");
print DATA "$entry\n";
close (DATA);
}