-Original Message-
From: ubergoonz [mailto:[EMAIL PROTECTED]
Sent: Monday, July 23, 2007 10:06 AM
To: Perl Beginners
Subject: variable in cgi param
Hi,
I am trying to parse a param in cgi script.
basically how can i make use of a for loop to parse the variables, from
the
url
http
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
> for ($1=1; $i <= $cgi->param('totalkey') ; $i++) {
$1 is not $i - If you would use 'use strict', you would find mistakes
like this very easy :)
> print "$i - $cgi->param('ip$i') cgi->param('hn$i') ";
Please try:
print "$i - " . $cgi->param('i
i have used this, just to display all param()s and verify the data
being passed. i'm thinking someone showed me a newer version for
looking at multiple values for checkboxes, etc. but i'm not sure and i
don't have more recent code available to verify.
hope this helps
#
foreach my
Hi,
I am trying to parse a param in cgi script.
basically how can i make use of a for loop to parse the variables, from the
url
http://someplace/cgi-bin/script.cgi?ip1=xxx.xxx.xxx.xxx&hn1=blah&ip2=xxx.xxx.xxx.xxx&hn2=blah&ip3=xxx.xxx.xxx.xxx&hn3=blah&totalkey=3
for ($1=1; $i <= $cgi->param('t