Is there a way to get rid of the underscore that appears in the drop-down menus?
Jun 10, 2001, 1:06 PM
Veteran (19537 posts)
Jun 10, 2001, 1:06 PM
Post #2 of 3
Views: 1954
In sub build_select_filed in db_utils.pl try replacing:
$values{$field} ?
($output .= "<OPTION SELECTED>$field\n") :
($output .= "<OPTION>$field");
}with:
$field2 = $field;
$field2 =~ s/_/ /g;
$values{$field} ?
($output .= "<OPTION SELECTED>$field\n") :
$output .= qq|<OPTION NAME="$field">$field2|;
}Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/
Code:
foreach $field (@fields) { $values{$field} ?
($output .= "<OPTION SELECTED>$field\n") :
($output .= "<OPTION>$field");
}
Code:
foreach $field (@fields) { $field2 = $field;
$field2 =~ s/_/ /g;
$values{$field} ?
($output .= "<OPTION SELECTED>$field\n") :
$output .= qq|<OPTION NAME="$field">$field2|;
}
Favicon:http://www.wiredon.net/favicon/