RE: data structures one more try

2003-03-05 Thread David Gilden
Rob and all the rest reading this, Here's what fixed the problem. The check boxes are only sent to CGI.pm if checked, while all the input fields are sent regardless. So @bag_quantity was filled with '0's ... get rid of 'o's @bag_quantity = grep(/[^0]/, @bag_quantity); ...this now seems to

RE: data structures one more try

2003-03-05 Thread David Gilden
Rob, Good call! > You can print out the data in @bags and @bag_quantity > using Data::Dumper.. > print Dumper [EMAIL PROTECTED]; Check this out, 'order' second and third bag in the first row. and hit the CGI and see the results,

RE: data structures / CGI.pm

2003-03-04 Thread David Gilden
Good afternon, I am not seeing consistent results from my script below. It seems that sometimes it works and other times I get '0's in the quantity field. As I don't write PERL often enough this is probably poorly written code! Thanks for any help. Dave HTML at:

RE: data structures

2003-03-04 Thread Hanson, Rob
> any suggestions? I'll try. > @bags = param('handbag'); get all of the bags styles Missing comment... @bags = param('handbag'); # get all of the bags styles > push %bags_ordered,$bag_name; You can't push onto a hash, only an array. So either %bags_ordered need to be an array, or you mean s