In Reply To:
In Reply To:
Case sensitive as with all other fields.
>>ExpireDays <<
<%ExpireDays%> Hey Paul!
Many thanks - changed that in the add form - no error message but no select field shows up either.
http://www.nzcid.org.nz/ads/add.cgi Do not understand.. I have another select field called region and that works no worries at all.
Anyways assistance appreciated.
I'm up to this step... I tried replacing the cases as stated in the following reply but still get the message
error building select field: no select fields specified in config for field 'ExpireDays'!
IN MY SITE_HTML_TEMPLATES.PL
...
sub site_html_add_form {
# --------------------------------------------------------
# This routine determines how the add form page will look like.
#
&html_print_headers;
my $expiredays = &build_select_field ("ExpireDays","$in{'ExpireDays'}");
my $category = shift;
$category ?
($category = qq~$category <input type=hidden name="Category" value="$category">~) :
($category = &build_select_field ("Category", "$in{'Category'}"));
print &load_template ('add.html', {
ExpireDays => $expiredays,
Category => $category,
%globals
});
}
...
AND IN MY LINKS.DEF
...
Soundclip =>[17,'alpha',40,75,0,'',''],
City => [18,'alpha',40,75,0,'',''],
State => [19,'alpha',40,75,0,'',''],
Country => [20,'alpha',40,75,0,'',''],
Telephone => [21,'alpha',40,75,0,'',''],
ExpireDays => [22, 'alpha',10,10,1,'30','30|60|90|182|365']
);
...
MY ADD.HTML
...
<%ExpireDays%>
...
Did I make an error?
Thanks,
Will