To remove all extra spaces in the database in your cgi file within sub join_encode
after the lines:
foreach $col (@db_cols) {
$tmp = $hash{$col};
add:
$tmp =~ s/^\s+//g; # Trim leading blanks...
$tmp =~ s/\s+$//g; # Trim trailing blanks...
I'm not positive whether this will work with the password file but you could test it.
You might also want to add a cookie mod to the database. This would easily allow people to choose to remember their username and password and have it entered for them when they get to the login screen.
Perhaps you might want to make a note to let people know that once they signup .. they will then be taken to the confirmation page where they will then login using their chosen username and password. I think some people may not realize the process without some helpful notes provided by you.
For instance I use something like this with the sub html_signup_form:
print qq|<$font><B>Welcome to $html_title.</B><P>
To create your own account, simply enter in your desired username and password.<P>
Once you register you will then be asked to login using your chosen user name and password.<P>
<B>Please write down your username and password and keep it in a safe place.</B>.<P>
Whenever you want to modify your record you will need to login to the database to make your additions or changes.
<P>
Please note:<BR>
If the page reloads it may give you the message the username is already entered.<BR>
Try to <B><A HREF="$db_script_url?db=$db_setup">Log On</A></B> before choosing another name.</font>|;
And another note within sub html_signup_success
print qq| <$font>Your account has been set up!<P>
Use your username and password to log in.<P>
Once you login you can add and/or modify your listing using the navigation menu.</font>
Hope this helps you.
Unoffical DBMan FAQ
http://creativecomputingweb.com/dbman/index.shtml/