outlaw2k
04-08-2003, 09:48 PM
I can't figure out what's wrong, both these scripts don't work and I don't want to use the "PRINT" method,
because it will be harder to read and edit since I'll have to keep escaping
the characters... the path is also right. it outputs the html but not
the variable
#!/usr/bin/perl -w
$Name = $in{'Name'};
print "Content-type: text/html\n\n";
print <<"(END ERROR HTML)";
<html>
<HEAD>
<TITLE>a stupid test!</TITLE>
</HEAD>
<body>
<center>Your name is $Name</center>
</body>
</html>
(END ERROR HTML)
exit;
OR, the following
#!/usr/bin/perl -w
$Name = $in{'Name'};
print "Content-type: text/html\n\n";
print << ENDHTML";
<html>
<HEAD>
<TITLE>a stupid test!</TITLE>
</HEAD>
<body>
<center>Your name is $Name</center>
</body>
</html>
ENDHTML
exit;
because it will be harder to read and edit since I'll have to keep escaping
the characters... the path is also right. it outputs the html but not
the variable
#!/usr/bin/perl -w
$Name = $in{'Name'};
print "Content-type: text/html\n\n";
print <<"(END ERROR HTML)";
<html>
<HEAD>
<TITLE>a stupid test!</TITLE>
</HEAD>
<body>
<center>Your name is $Name</center>
</body>
</html>
(END ERROR HTML)
exit;
OR, the following
#!/usr/bin/perl -w
$Name = $in{'Name'};
print "Content-type: text/html\n\n";
print << ENDHTML";
<html>
<HEAD>
<TITLE>a stupid test!</TITLE>
</HEAD>
<body>
<center>Your name is $Name</center>
</body>
</html>
ENDHTML
exit;