Try this:
Linking to fields with spaces
If the only problem you're running into is spaces, you can use:
$rec{'FieldName'} =~ s/ /+/g;
For each field that might have spaces in it. If you are going to have other characters that might cause problems,
there's another subroutine that will do the conversion.
Add the following somewhere in db.cgi -- anywhere is fine, as long as it's not in the middle of another subroutine.
sub urlencode {
# --------------------------------------------------------
my($toencode) = @_;
$toencode=~s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%02x",ord($1))/eg;
$toencode=~s/\%2F/\//g;
return $toencode;
}
Then, before you print out your link in html.pl, use:
$rec{'FieldName'} = &urlencode($rec{'FieldName'});
If that doesn't help check the FAQ noted below under Linking or images .. i'm sure this problem has been addresses and hopefully the solution is posted.
Unoffical DBMan FAQ
http://creativecomputingweb.com/dbman/index.shtml/