im just learning html and cgi.
i've got a very simple and unfinished test script that i'm writing to learn things .
the problem i have at the moment is i cant seem to get a background picture to work with the script although it works with any standard html.?
this is the full script .
any other tips will be appreciated. all critics welcome.
#!c:/perl/bin/perl.exe
print "Content-type: text/html\n\n";
$htmlForm = <<EOS;
<html>
<head>
<title>send text form</title>
</head>
<body BACKGROUND="NOLF2b_12.jpg">
<form method="POST"
action="<b3>Pick a number<br /></b3>
<input type="text" name="text" size="25">
<input type="submit" value="Hit it">
</form>
<body>
</html>
EOS
print $htmlForm;
print "<html>";
if ( $ENV{'REQUEST_METHOD'} eq 'POST'){
$text = <STDIN>;
}
print "$text";
print "</html>";
i've got a very simple and unfinished test script that i'm writing to learn things .
the problem i have at the moment is i cant seem to get a background picture to work with the script although it works with any standard html.?
this is the full script .
any other tips will be appreciated. all critics welcome.
#!c:/perl/bin/perl.exe
print "Content-type: text/html\n\n";
$htmlForm = <<EOS;
<html>
<head>
<title>send text form</title>
</head>
<body BACKGROUND="NOLF2b_12.jpg">
<form method="POST"
action="<b3>Pick a number<br /></b3>
<input type="text" name="text" size="25">
<input type="submit" value="Hit it">
</form>
<body>
</html>
EOS
print $htmlForm;
print "<html>";
if ( $ENV{'REQUEST_METHOD'} eq 'POST'){
$text = <STDIN>;
}
print "$text";
print "</html>";