Code:
sub site_html_add_failure {
# --------------------------------------------------------
# This routine determines how the add failure page will look like.
my ($errormsg) = shift;
my $category = &build_select_field ("Category", "$in{'Category'}");
delete $in{'Category'};
my $altcategories = &build_select_field ("AltCategories","$in{'AltCategories'}","AltCategories","MULTIPLE Size=5");
delete $in{'AltCategories'};
&html_print_headers;
print &load_template ('add_error.html', {
AltCategories => $altcategories,
Category => $category,
error => $errormsg,
%in,
%globals
});
}
If you remember a while back, after adding the Alt Categories mod, I was having trouble getting the category to be hard coded.
Well, I did mess around a bit with the
sub site_html_add_form routine because I saw what looked like an error after adding Alt Categories.
Here is what I had after initially adding Alt categories to
sub site_html_add_form:
Code:
sub site_html_add_form {
# --------------------------------------------------------
# This routine determines how the add form page will look like.
#
&html_print_headers;
my $category = shift;
# $category ?
# ($category = qq~$category <input type=hidden name="Category" value="$category">~) :
# ($category = &build_select_field ("Category", "$in{'Category'}"));
my $category = &build_select_field ("Category", "$category");
my $altcategories = &build_select_field ("AltCategories","$in{'AltCategories'}","AltCategories","MULTIPLE Size=5");
print &load_template ('add.html', {
AltCategories => $altcategories,
Category => $category,
%globals
});
}
but it didnt look right so i changed it to:
Code:
sub site_html_add_form {
# --------------------------------------------------------
# This routine determines how the add form page will look like.
#
&html_print_headers;
my $category = shift;
$category ?
($category = qq~$category <input type=hidden name="Category" value="$category">~) :
($category = &build_select_field ("Category", "$in{'Category'}"));
# my $category = &build_select_field ("Category", "$category");
my $altcategories = &build_select_field ("AltCategories","$in{'AltCategories'}","AltCategories","MULTIPLE Size=5");
print &load_template ('add.html', {
AltCategories => $altcategories,
Category => $category,
%globals
});
}
This got my hard coded category back instead of the drop down list.
By chance could this be causing these IE4.0 users to have problems?