passing array to new page

Bobby Kleemann rkleeman at neta.com
Thu Sep 21 15:34:14 CDT 2000


~sdpm~
First off, your script isn't going to act as you assume becuase you are
using POST as the method, but you are passing your parameters as GET
param's (I'm pretty sure tha CGI.pm will ignore GET param's if you're
using POST as the method).  What you probably want to do is include the
elements of your array as hidden fields.  Something like this I think:

$q->hidden(-name => 'metafiles', -default => \@metafiles);

 _ _ _
 Bobby Kleemann <rkleeman at neta.com>
     http://www.neta.com/~rkleeman/

On Thu, 21 Sep 2000, Vasquez, Mike wrote:

> ~sdpm~
> Is it possible to pass an array to using the submit button, for example:
> 
> $q->start_form({-method=>'post',
>                        -action=>'players.pl?metafiles=' . @metafiles
> ###this arrays is passing the total of all the total of the array
> (players.pl?metafiles=4
>                        -target=>'_new'}),
>       $q->submit({-value=>'Monitor Streams', -name=>'submit'})
> $q->end_form(),
> 
> I want to be able to pass the array to another cgi page and propagate
> empedded players. (real & windows media).
> 
> Michael Vasquez
> Sr. Webcast Manager
> Akamai Technologies
> (858) 909-3106
> (619) 252-4999 (cell)
> mike.vasquez at akamai.com
> http://www.akamai.com/
> Nasdaq: AKAM
> 
> 
> ~sdpm~
> 
> The posting address is: san-diego-pm-list at hfb.pm.org
> 
> List requests should be sent to: majordomo at hfb.pm.org
> 
> If you ever want to remove yourself from this mailing list,
> you can send mail to <majordomo at happyfunball.pm.org> with the following
> command in the body of your email message:
> 
>     unsubscribe san-diego-pm-list
> 
> If you ever need to get in contact with the owner of the list,
> (if you have trouble unsubscribing, or have questions about the
> list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
> This is the general rule for most mailing lists when you need
> to contact a human.
> 

~sdpm~

The posting address is: san-diego-pm-list at hfb.pm.org

List requests should be sent to: majordomo at hfb.pm.org

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:

    unsubscribe san-diego-pm-list

If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.




More information about the San-Diego-pm mailing list