getting all params while referencing bugzilla's CGI.pl

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


Or something like

my $params = \%::FORM?

How then should / can I access the items in the hash?

-Edward


--- Edward Tsai <tsai_edward at yahoo.com> wrote:
> 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
> -
> To view or change your list settings, click here:
>
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=tsai_edward@yahoo.com>


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



More information about the developers mailing list