You could either alter the select field sub in db_utils.pl or edit the add sub in site_html_templates.pl
The add sub is prob easier to edit so try the following.
Open site_html_templates.pl and find in the sub_html_add_form:
$category ?
($category = qq~$category <input type=hidden name="Category" value="$category">~) :
($category = &build_select_field ("Category", "$in{'Category'}"));
Replace it with:
if ($db_single_category == 1){
$category = qq~$category <input type=hidden name="Category" value="$category">~;
$category = &build_clean($in{'Category'});
}
else {
$category = &build_select_field ("Category", "$in{'Category'}");
}
Glenn
Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
The add sub is prob easier to edit so try the following.
Open site_html_templates.pl and find in the sub_html_add_form:
$category ?
($category = qq~$category <input type=hidden name="Category" value="$category">~) :
($category = &build_select_field ("Category", "$in{'Category'}"));
Replace it with:
if ($db_single_category == 1){
$category = qq~$category <input type=hidden name="Category" value="$category">~;
$category = &build_clean($in{'Category'});
}
else {
$category = &build_select_field ("Category", "$in{'Category'}");
}
Glenn
Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml