The following Perl CGI script displays the web page code quite nicely as a web page on Internet Explorer. However, Netscape 7.x and the current FireFox web browers display the actual HTML code.
OK what needs to be added to the HTML code to get Netscape and Firefox to display it as a web page?
sub check_userid {
# Check if Valid User ID & Password was entered
if ($Form{username} == $validuserid && $Form{password} == $validpassword) {
print <<"(VALID LOGIN HTML)";
<html>
<head>
<title>Successfully Logged in to the Staff Web Page</title>
</head>
<body>
.
.
.
</body>
</html>
(VALID LOGIN HTML)
}
else {
print <<"(INVALID LOGIN HTML)";
<html>
<head>
<title>Did Not Successfully Log in to the Staff Web Page</title>
</head>
<body>
.
.
.
</body>
</html>
(INVALID LOGIN HTML)
}
.
.
.
Best Regards,
OK what needs to be added to the HTML code to get Netscape and Firefox to display it as a web page?
sub check_userid {
# Check if Valid User ID & Password was entered
if ($Form{username} == $validuserid && $Form{password} == $validpassword) {
print <<"(VALID LOGIN HTML)";
<html>
<head>
<title>Successfully Logged in to the Staff Web Page</title>
</head>
<body>
.
.
.
</body>
</html>
(VALID LOGIN HTML)
}
else {
print <<"(INVALID LOGIN HTML)";
<html>
<head>
<title>Did Not Successfully Log in to the Staff Web Page</title>
</head>
<body>
.
.
.
</body>
</html>
(INVALID LOGIN HTML)
}
.
.
.
Best Regards,