Hi.
I have a VERY simple CGI script which doesn't appear to work.
Firstly Windows doesnt recognise the .cgi extension, but i doubt it's that.
All the script does is take a string from an inputbox an should display the string on a webpage.
Is there a mistake in my script? :
--------------------------------------------------
#!/usr/bin/perl -w
if ($ENV{'REQUEST_METHOD'} eq "GET" {
$in = $ENV{'QUERY_STRING'};
} else {
$in = <STDIN>;
}
print << END;
Content-Type: text/html\n\n
<html>
<body>
<center>
<font size = 20> RESULTS
<br>
name = $in
</font>
</center>
</body>
</html>
END
-------------------------------------------------------
I'm using a POST method, but I don't think that's anything to do with it, as I keep getting a 'Internal Server Error' page from Apache.
I really hope someone can help!
Any and all suggestions welcome!
thanks every1; JoE we are all of us living in the gutter.
But some of us are looking at the stars.
I have a VERY simple CGI script which doesn't appear to work.
Firstly Windows doesnt recognise the .cgi extension, but i doubt it's that.
All the script does is take a string from an inputbox an should display the string on a webpage.
Is there a mistake in my script? :
--------------------------------------------------
#!/usr/bin/perl -w
if ($ENV{'REQUEST_METHOD'} eq "GET" {
$in = $ENV{'QUERY_STRING'};
} else {
$in = <STDIN>;
}
print << END;
Content-Type: text/html\n\n
<html>
<body>
<center>
<font size = 20> RESULTS
<br>
name = $in
</font>
</center>
</body>
</html>
END
-------------------------------------------------------
I'm using a POST method, but I don't think that's anything to do with it, as I keep getting a 'Internal Server Error' page from Apache.
I really hope someone can help!
Any and all suggestions welcome!
thanks every1; JoE we are all of us living in the gutter.
But some of us are looking at the stars.