in reply to Re: Re: Re: Database issues
in thread Database issues

Ok, I am getting so frustrated now. I removed the scalar as a key and just put 'name' as a test ($stats{'name'} = $name) but even THAT only stores on value at a time! Can someone tell me why?

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Database issues
by nothingmuch (Priest) on Apr 09, 2003 at 17:15 UTC
    This should do what you mean:
    print "Name: " textfield( # this field contains the name (e.g. 'georg +e','bill', whatever) -name => 'name', -size => 100); print "age: " textfield( # this is the age of whoever's name is in t +he field above (possibly) -name => 'age', -size => 5); my $name = param('name'); # the name we got back is placed in the vari +able $name my $age = param('age'); # the age we got back is placed in $age $stats{$name} = $age; # lets associate $name with $age in a hash


    -nuffin
    zz zZ Z Z #!perl