Hello,
I try executing the simple form pl file but get an internal server
error.
When I run a simple perl test file, it runs fine..
Here's what I test with
#!/usr/bin/perl
print "Content-type: text/html\r\n\r\n";
print "hello World\n";
When I run the simple form pl file, I see the error
#!/usr/bin/perl
use CGI::FormBuilder;
@fields = qw(first_name last_name email phone);
$form = CGI::FormBuilder->new(
fields => \@fields,
);
if($form->submitted && $form->validate) {
$fname = $form->field('first_name');
$lname = $form->field('last_name');
print $form->confirm(header => 1);
} else {
print $form->render(header => 1);
}
The script runs ok on the terminal and spits out html code. On the
browser, its always internal server error.
Please help.
On Oct 4, 12:24 am, "Wolfgang Radke" <
wora1...@googlemail.com> wrote:
> Hello 'dd137',
>
> are you working with unix/linux?
> if so:
> - check whether your perl file is executable
> - check whether your http-daemon (apache?) considers the file/dir
> executable
>
> Better yet: Put the perl-file into cgi-bin
>
> Wolfgang
>