getting all params while referencing bugzilla's CGI.pl

Edward Tsai tsai_edward at yahoo.com
Tue Aug 19 18:04:05 UTC 2003


hi,

normally, i would do a 

#!/usr/bin/perl
use strict;
use CGI;

my $q = new CGI;
print "Content-Type: text/plain\n\n";

# Grab all the parameter names and put them into an
array
my @params = $q->param;

# Extract all the textarea names into an array
my @textareas = grep(/newcom/, at params);

foreach my $textarea (@textareas) {
  if ($q->param($textarea)) {
     print "Textarea: $textarea has data\n";
  }
  else {
     print "Textarea: $textarea is empty\n";
  }
}


to get certain text areas from a form.

However, if I am using a page that references'
bugzilla's CGI.pl, I've tried doing

my @params = param;

but it doesn't work :(


-Edward

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the developers mailing list