Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Embperl

Passing an array to a web form in EmbPerl?

 

 

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded


scott at lund

Jun 14, 2000, 12:55 PM

Post #1 of 2 (769 views)
Permalink
Passing an array to a web form in EmbPerl?

Hello,

I have a situation where I am dealing with a non-normalized
database of computers sytems and want to pass the computer
systems to a web form as an array.

Say I have this:
field1 = Sytem 1 info
field2 = Sytem 2 info
field3 = Sytem 3 info

I want to call a EmbPerl script something like this:
www.host.com/script?systems={field1,field2,field3}&otherparm=othervalue

so that I can access the systems array in my embperl script.

Can I do this? What syntax would I use?

would this work: ?
www.host.com/script?systems=field1&systems=field2&systems=field3&otherparm=othervalue

TIA,
Scott


tfr at mysql

Jun 14, 2000, 12:56 PM

Post #2 of 2 (734 views)
Permalink
RE: Passing an array to a web form in EmbPerl? [In reply to]

Hi,

> I want to call a EmbPerl script something like this:
> www.host.com/script?systems={field1,field2,field3}&otherparm=othervalue
> so that I can access the systems array in my embperl script.

you can do:
www.host.com/script?system=field1&system=field2&system=field3

in this case you'll get a tab-separated list into $fdat{system} which
you can easily spread into an array with split.


Rgds,
Tfr

--==< tfr [at] mysql >==< MySQL development team >==< Thibodaux, LA / USA >==--

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.