[ back to toc ]

Parsing info from form to hash

Date: 2002/04/29 16:17

Q:
I want to ask users five questions on a form. All answers will be one
word answers. I want to take this data and use DBM Files. First, how do
I parse the data to the hash? Also, my keys will be name, location,
groomname, registration, and date. It is my understanding that all keys
must be unique. There will be more than one user entering data. So how
do I get around the unique key problem? When using DBM do I need to put
"use DB_File" or something like that in my script?

Thanks,
Dave
A:
Use the CGI.pm or cgi-lib.pl packages.

Use some unique value as key not the parsed keys. For example visitor
eMail address of social seciruty number.

Regards,
Peter

[ back to toc ]