getting all params while referencing bugzilla's

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


normally, i would do a 

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
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, I've tried doing

my @params = param;

but it doesn't work :(


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

More information about the developers mailing list