Bobsie,
This is what I have for the add failure routine:
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=3");
delete $in{'AltCategories'};
if ($in{'ReceiveMail'} eq "Yes") {
my $radio_button = qq|Receive Mail:
<input type="radio" name="ReceiveMail" value="Yes" checked> Yes
<input type="radio" name="ReceiveMail" value="No"> No;
}
else {
my $radio_button = qq|Receive Mail:
<input type="radio" name="ReceiveMail" value="Yes"> Yes
<input type="radio" name="ReceiveMail" value="No" checked> No;
}
&html_print_headers;
print &load_template ('add_error.html', {
radio_button => $radio_button,
AltCategories => $altcategories,
Category => $category,
error => $errormsg,
%in,
%globals
});
}
This is the error I am getting:
Code:
Error including libraries: syntax error at /www/htdocs/admin/site_html_templates.pl line 227, near "my $radio_button = qq|Receive Mail"
Make sure they exist, permissions are set properly, and paths are set correctly.
Sorry for the last post, I never got that far to get the unknown tag. I think that was when I forgot to put the ifelse code in.
I cannot figure out where the syntax error could be. This error occurs when I click on add resource to go to add.cgi . Is there something wrong with one of my perl modules?
Thanks in advance,
elms
[This message has been edited by elms (edited March 24, 1999).]