Cannon,
The beginning of the ADD section of site_html.pl should look like this:
Code:
sub site_html_add_form {
# --------------------------------------------------------
# This routine determines how the add form page will look like.
#
my $category = shift;
$category ?
($category = qq~$category <input type=hidden name="Category" value="$category">~) :
($category = &build_select_field ("Category", "$in{'Category'}"));
That is the default configuration when you download the script.
If you set the single category option to 1 in links.cfg, that code will produce a hard-coded category. If you set single category to 0 in links.cfg, that same script will produce a select field of all your categories. It came ready for hard-coded categories out of the box. The ONLY thing you had to change was the option in links.cfg. There is nothing to change in site_html.pl to make this happen. It's built in.
Phoenix
[This message has been edited by phoenix (edited April 10, 1999).]