I have only 1 category, i want to get rid of
<SELECT NAME="Category" SIZE=1><OPTION>---<OPTION>my category</SELECT>
to have only:
<SELECT NAME="Category" SIZE=1><OPTION SELECTED>my category</SELECT>
so it will be modified everywhere (admin panel included) and the category will be selected.
I made various (obviously wrong) modif in my db_utils.pl under:
$output = qq|<SELECT NAME="$name" $mult SIZE=$size><OPTION>---|;
foreach $field (@fields) {
$values{$field} ?
($output .= "<OPTION SELECTED>$field\n") :
($output .= "<OPTION>$field");
}
$output .= "</SELECT>";
**and**
# Make a select list out of those names.
$output = qq|<SELECT NAME="$name"><OPTION>---|;
foreach $field (sort keys %selectfields) {
($field eq $value) ?
($output .= "<OPTION SELECTED>$field\n") :
($output .= "<OPTION>$field\n");
}
$output .= "</SELECT>\n";
return $output;
}
How should i modify the code to obtain the result I want?
Thanks
<SELECT NAME="Category" SIZE=1><OPTION>---<OPTION>my category</SELECT>
to have only:
<SELECT NAME="Category" SIZE=1><OPTION SELECTED>my category</SELECT>
so it will be modified everywhere (admin panel included) and the category will be selected.
I made various (obviously wrong) modif in my db_utils.pl under:
$output = qq|<SELECT NAME="$name" $mult SIZE=$size><OPTION>---|;
foreach $field (@fields) {
$values{$field} ?
($output .= "<OPTION SELECTED>$field\n") :
($output .= "<OPTION>$field");
}
$output .= "</SELECT>";
**and**
# Make a select list out of those names.
$output = qq|<SELECT NAME="$name"><OPTION>---|;
foreach $field (sort keys %selectfields) {
($field eq $value) ?
($output .= "<OPTION SELECTED>$field\n") :
($output .= "<OPTION>$field\n");
}
$output .= "</SELECT>\n";
return $output;
}
How should i modify the code to obtain the result I want?
Thanks