For the userid here is the codes to add:
Add userid automatically when adding records
Changes in db.cgi
In sub get_defaults replace:
foreach $field (keys %db_defaults) {
$default{$field} = $db_defaults{$field};
}
with:
foreach $field (keys %db_defaults) {
$default{$field} = $db_defaults{$field};
####### add userid in add form ###########
unless ($per_admin) { ($auth_user_field >=0) and ($db_defaults{$db_cols[$auth_user_field]} = $db_userid); }
}
In sub add_record instead of:
# Set the userid to the logged in user.
##### ($auth_user_field >= 0) and ($in{$db_cols[$auth_user_field]} = $db_userid);
use:
# Set the userid to the logged in user (except if admin).
unless ($per_admin) { ($auth_user_field >= 0) and ($in{$db_cols[$auth_user_field]} = $db_userid); }
Are you using the password lookup mod? I'm not sure how the email is being stored. I'm sure if you search within the FAQ you will find a solution for the email address part.
Hope this helps
Unoffical DBMan FAQ
http://creativecomputingweb.com/dbman/index.shtml/