# have a db and hash $stats open # form is incomplete in the snippet but you get the general idea # print "Name: " textfield( -name => 'name', -size => 100); print "age: " textfield( -name => 'name', -size => 5); my $name = param('name'); my $age = param('age'); #store every person from the form into the database $stats{$name} = $age;