> -----Original Message----- > From: Steven Wren [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 10, 2000 2:39 AM > To: [EMAIL PROTECTED] > Subject: RequestNotes passing arrays > > > Hello Geoffrey > > I am not sure if u want people writing to u directly about > RequestNotes, > so tell me to bugger off and i will send this to the modperl > mailing list. > ;-) no bother - I'll forward it to the list, though, in case anyone else has this problem... > > anyway.. > > I am using requestnotes on a site i am doing and have been > impressed with > it. I have just one problem that has surfaced. > > When passing an array from a form to my modperl handler, i > cannot seem to > 'read' in the array into an array variable. I have done this > previously > using the standard CGI package. > > my HTML looks like this... > <input type=hidden name=array_options[size] value=xxx> > <input type=hidden name=array_options[colour] value=yyyy> > > in my modperl code i have tried.. > > my @product_option = $input->get('array_options'); > > or > > my %product_option = $input->get('array_options'); > > but neither contain any data. I ran a quick test which showed that the actual name of the parameter getting posted is 'array_options[size]'. try: $size = $input->get('array_options[size]'); I suspect that if it works with CGI.pm that's due to some manipulations behind the scenes, but I don't really know... > > using CGI, like I have before, does not work either, is this because > RequestNotes already handles the POSTed vars? right, RequestNotes (which is really using Apache::Request for parsing) gobbles up the POSTed stuff at init (or wherever you run it) so it's no longer available for parsing by CGI.pm. I think I say something like this in the man page... HTH --Geoff > > so it it legal to have strings as the array keys as far as > RequestNotes is > concerned, or must I have standard keys(0,1,2,..etc)? > > or do i just have no idea :-) > > Thanks again for your help. > > Cheers! > > Steven Wren >