Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
for my cgi script#!/perl/bin/perl.exe -wT use CGI; use strict; my $q = new CGI; my $company = $q->param('company'); my $last = $q->param('last'); my $first = $q->param('first'); my $serial = $q->param('serial'); my $meter = $q->param('meter'); print $q->header("text/plain"); print <<WEB_PAGE; <HTML> <HEAD> <TITLE>Test CGI</TITLE> </HEAD> <BODY> <H3>You Entered</H3><BR> <PRE> WEB_PAGE &INFO; print "\<\/PRE\>\n"; print "\<\/BODY\>\n"; sub INFO { print "COMPANY: $company\n"; print "LAST: $last\n"; print "FIRST: $first\n"; print "SERIAL: $serial\n"; print "METER: $meter\n"; }
This is what I have for a form on my html page
The Print statements are being displayed properly but the variables are not being displayed after I enter something into the fields<FORM method ="post"action="/cgi-bin/meter.cgi"> Company Name<br> <INPUT type="text" company="company" size="35" autocomplet +e="OFF"><br></br> Last Name<br> <INPUT type="text" last="last" size="35" autocomplete="OFF +"><br></br> First Name<br> <INPUT type="text" first="first" size="35" autocomplete="O +FF"><br></br> Serial Number<br> <INPUT type="text" serial="serial" size="35" autocomplete= +"OFF"><br></br> Meter Reading<br> <INPUT type="text" meter="meter" size="35" autocomplete="O +FF"><br></br> <INPUT type="submit" value=" Submit "> <INPUT type="reset" + value=" Reset "> </FORM>
Anyone have any idea why?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cgi problem
by gjb (Vicar) on Dec 23, 2002 at 01:47 UTC | |
by Anonymous Monk on Dec 23, 2002 at 02:54 UTC | |
|
(jeffa) Re: cgi problem
by jeffa (Bishop) on Dec 23, 2002 at 01:08 UTC | |
by Anonymous Monk on Dec 23, 2002 at 01:21 UTC | |
by jeffa (Bishop) on Dec 23, 2002 at 01:48 UTC | |
|
Re: CGI Cross-Site Scripting Problem
by Anonymous Monk on Dec 23, 2002 at 01:30 UTC |