[Erg, THIS one I'm sending to the list!] On 8/3/01 1:18 AM, Rajeev Rumale wrote: > Hello Every Body, > > I am have question redarding the form handling. Though I have a way to get > around it, I would like to know if their is any staright forward way to do > the same. > > Problems: > I need to maintain a list of options and the user is allowed delete multiple > options by checking the check boxes. Since the name of checkbox, where as > the value changes for each check box. > > I am using CGI (&readparse) to parse the form inputs. > If the selcect field name is "list" and I select (or check) 5 options having > values "1", "2", "3", "4" and "5". > what i get from hasd "in" is "12345"; > Since I all the values are ids and are interger values it is not possible to > get the exact numbers being submitted. > > > My solution: > Since the values are appended at runtime via script. I am adding a "," after > each value so the above values would become > "1,","2,","3,","4," and "5," > Now what i get from the has "in" is "1,2,3,4,5," > I can now split the values and over comma and get the array > > > I would like to kown if this is a write way to do are there is any better > way to do it. > > with regards > > Rajeev Rumale I believe CGI.pm lists values returned from lists as arrays. So as far as I know, the following should work: $input = new CGI; @anArray = $input->param('listField'); #if your field is called listField That should give you a list of values from the very start. Hope that helps, -Michael Kelly Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]