perl script

by FODAC(at)aol.com

 Date:  Wed, 19 Dec 2001 16:46:31 EST
 To:  <hwg-techniques(at)mail.hwg.org>
  todo: View Thread, Original
I'm trying to run the following test form and corresponding perl script. Everything shows but the variable "name". Can anyone see why this is?

Kevin Riggs
 
<HTML>
 
<HEAD>
 
<TITLE>Test form</TITLE>
 
</HEAD>
 
<BODY>
 
<FORM METHOD="post" ACTION="cgi-bin/form.pl">
 
Name:<INPUT TYPE="text" NAME="name">
 
<br>
 
<INPUT TYPE="submit" VALUE="click here">
</FORM>
 
</BODY>
 
</HTML>
 
 
and the perl script:
 
#!/usr/bin/perl
 

use CGI;
 
my $handler;
$handler = CGI::new();
 
print $handler->header();
print $handler->start_html(
  -title=>"form results\n",
  -bgcolor=>"#ffff00");
print "Name: $name";
 
print $handler->end_html();
----- 

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA