mswanndeford
02-13-2007, 09:24 PM
I am just learning CGI/Perl and I am trying to test a very basic script. However, I keep getting an Internal Server Error.
Can anyone help? :confused:
Script:
#!/usr/perl/bin/perl.exe
use strict;
use CGI ':standard';
my $value;
$value = param('tapas');
print "Content-type: text/html\n\n";
print "Your favorite Tapas place in Barcelona was $value";
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<form action="tapas.cgi" method="post">
What's the name of your favorite Tapas place in Barcelona?<br>
<input type="text" size="20" name="tapas"><br>
<input type="submit"></form>
</body>
</html>
Can anyone help? :confused:
Script:
#!/usr/perl/bin/perl.exe
use strict;
use CGI ':standard';
my $value;
$value = param('tapas');
print "Content-type: text/html\n\n";
print "Your favorite Tapas place in Barcelona was $value";
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<form action="tapas.cgi" method="post">
What's the name of your favorite Tapas place in Barcelona?<br>
<input type="text" size="20" name="tapas"><br>
<input type="submit"></form>
</body>
</html>