This CGI script runs when called from html by
HTML
CGI
WHY DOES THAT WORK AND THIS DOES'NT
HTML
CGI
ANY THOUGHTS or betterways to do this
MADAXE
HTML
Code:
<!--#exec cgi="CGI_BIN/first.cgi"-->
CGI
Code:
#!/perl/bin/perl -wT
print "Content-type: text/html\n\n";
print "<div style='position: absolute; top: 132; left: 419; width: 43; height: 25'>
<h2>Hello, world!</h2></div>\n";
WHY DOES THAT WORK AND THIS DOES'NT
HTML
Code:
<!--#exec cgi="CGI_BIN/CHECK.cgi"-->
CGI
Code:
#!/Perl/bin/perl -wT
use CGI qw(:standard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
use strict;
my $query = new CGI;
my $cookieinfo = $query->cookie('mcjeeves.net');
if (!$cookieinfo)
{
print $query->redirect("../index.html?error=1");
exit;
}
else
{
print $query->redirect("../homepage.html?error=1");
}
ANY THOUGHTS or betterways to do this
MADAXE