Lois. Yes I installed the upload mod just to be able to upload one pic for each record. I didn't have expectations that the mod would do anything else.
Regarding the multiple select mod, I added that to db.cgi and made the necessary changes in html.pl It worked like it should using db.cgi without the upload mode but not with db.cgi with the upload mod. This is also what happened with the checkboxes.
Oldmoney (thankyou) has also kindly provided a java solution but at this stage, am resistant to go down that track because I would be playing with something I know little about!. Instead what I did was create another 20 individual checkbox fields with a single value for each one. To provide a division between each checkbox 'value' when search results show these on a single line, I added a '·' . So value="·Australian" , etc
This then provides the following result:
Cuisine: ·Australian ·Malaysian ·Indian ·Japanese , etc.
It looks quite presentable on the screen and provides much the same as the initial result I was looking for. The only difference was another two hours required to set up and an addition 20 individual values throughtout all the scripts rather than 15mins using
Cuisine => 'Australian,Malaysian,etc',
If it is of any help for others who have found this forum entry and have had the same problem and given LoisC and Oldmoney have taken the time to help, here is the exact code I ended up using:
default.cfg # Database Definition
# --------------------------------------------------------
# Definition of your database. Format is
# field_name => ['position', 'field_type', 'form-length', 'maxlength', 'not_null', 'default', 'valid_expr']
%db_def = (
'ID' => [ 0, 'numer', 20, 28, 1, '', ''],
'User' => [ 1, 'alpha', 50, 28, 0, '', ''],
'State' => [ 2, 'alpha', 0, 255, 1, '', ''],
'Region' => [ 3, 'alpha', 0, 255, 1, '', ''],
'Local Region' => [ 4, 'alpha', 0, 255, 1, '', ''],
'Town' => [ 5, 'alpha', 0, 255, 1, '', ''],
'Australian' => [ 6, 'alpha', 0, 255, 0, '', ''],
'Mediterranean' => [ 7, 'alpha', 0, 255, 0, '', ''],
'Chinese' => [ 8, 'alpha', 0, 255, 0, '', ''],
'Japanese' => [ 9, 'alpha', 0, 255, 0, '', ''],
'Thai' => [ 10, 'alpha', 0, 255, 0, '', ''],
'Indian' => [ 11, 'alpha', 0, 255, 0, '', ''],
'French' => [ 12, 'alpha', 0, 255, 0, '', ''],
'Italian' => [ 13, 'alpha', 0, 255, 0, '', ''],
'Greek' => [ 14, 'alpha', 0, 255, 0, '', ''],
'b' => [ 15, 'alpha', 0, 255, 0, '', ''],
'c' => [ 16, 'alpha', 0, 255, 0, '', ''],
'd' => [ 17, 'alpha', 0, 255, 0, '', ''],
'e' => [ 18, 'alpha', 0, 255, 0, '', ''],
'Steaks' => [ 19, 'alpha', 0, 255, 0, '', ''],
'Vegetarian' => [ 20, 'alpha', 0, 255, 0, '', ''],
'Smorgasboard/Buffet' => [ 21, 'alpha', 0, 255, 0, '', ''],
'Poultry' => [ 22, 'alpha', 0, 255, 0, '', ''],
'Seafood' => [ 23, 'alpha', 0, 255, 0, '', ''],
'Pasta' => [ 24, 'alpha', 0, 255, 0, '', ''],
'Pizza' => [ 25, 'alpha', 0, 255, 0, '', ''],
'Bakery/Sandwiches' => [ 26, 'alpha', 0, 255, 0, '', ''],
'Stir Frys' => [ 28, 'alpha', 0, 255, 0, '', ''],
'h' => [ 29, 'alpha', 0, 255, 0, '', ''],
'i' => [ 30, 'alpha', 0, 255, 0, '', ''],
'Licenced' => [ 31, 'alpha', 0, 16, 1, '', ''],
'Licence Type' => [ 32, 'alpha', 0, 60, 0, '', ''],
'Business name' => [33, 'alpha', 20, 255, 1, '', ''],
'Address' => [34, 'alpha', 20, 255, 1, '', ''],
'Phone' => [35, 'alpha', 20, 255, 1, '', ''],
'Hours' => [36, 'alpha', 0, 255, 0, '', ''],
'Email' => [37, 'alpha', 20, 255, 0, '',
'.+@.+..+'],
'Web' => [38, 'alpha', 20, 255, 0, '', '^http://'],
'Location' => [39, 'alpha', 0, 255, 0, 'CBD', ''],
'Overview' => [40, 'alpha', 20, 255, 0, '', ''],
'Details' => [41, 'alpha', 20, 255, 0, '', ''],
'BusP' => [42, 'numer', 0, 8, 0, '', ''],
'Date' => [43, 'date', 20, 255, 0, &get_date(), ''],
'Post Code' => [44, 'alpha', 1, 255, 1, '3280', ''],
'Special Offer' => [45, 'alpha', 20, 255, 0, '', ''],
'Breakfast' => [46, 'alpha', 20, 255, 0, '', ''],
'Lunch' => [47, 'alpha', 20, 255, 0, '', ''],
'Dinner' => [48, 'alpha', 20, 255, 0, '', ''],
'Late Supper' => [49, 'alpha', 20, 255, 0, '', ''],
'Graphic' => [50, 'alpha' ,0, 3, 0,'', 'Yes']
);
# Checkbox fields. Field name => Checkbox value.
%db_checkbox_fields = (
'Breakfast' => '·Breakfast',
'Lunch' => '·Lunch',
'Dinner' => '·Dinner',
'Late Supper' => '·Late Supper',
'Australian' => '·Australian',
'Mediterranean' => '·Mediterranean',
'Chinese' => '·Chinese',
'Japanese' => '·Japanese',
'Thai' => '·Thai',
'Indian' => '·Indian',
'French' => '·French',
'Italian' => '·Italian',
'Greek' => '·Greek',
'Steaks' => '·Steaks',
'Vegetarian' => '·Vegetarian',
'Smorgasboard/Buffet' => '·Smorgasboard/Buffet',
'Poultry' => '·Poultry',
'Seafood' => '·Seafood',
'Pasta' => '·Pasta',
'Pizza' => '·Pizza',
'Bakery/Sandwiches' => '·Bakery/Sandwiches',
'Stir Frys' => '·Stir Frys',
'b' => '·b',
'c' => '·c',
'd' => '·d',
'h' => '·h',
'i' => '·i',
'Graphic' => 'Yes'
);
html.pl sub html_record_form <TR><TD ALIGN="Right" VALIGN="TOP" WIDTH="150"><$font_color>Cuisine:</FONT></TD>
<TD VALIGN="TOP" WIDTH="475"><$font_sm>
|; print &build_checkbox_field("Australian",$rec{'Australian'}); print qq|
|; print &build_checkbox_field("Mediterranean",$rec{'Mediterranean'}); print qq|
|; print &build_checkbox_field("Chinese",$rec{'Chinese'}); print qq|
|; print &build_checkbox_field("Japanese",$rec{'Japanese'}); print qq|
|; print &build_checkbox_field("Thai",$rec{'Thai'}); print qq|
|; print &build_checkbox_field("Indian",$rec{'Indian'}); print qq|
|; print &build_checkbox_field("French",$rec{'French'}); print qq|
|; print &build_checkbox_field("Italian",$rec{'Italian'}); print qq|
|; print &build_checkbox_field("Greek",$rec{'Greek'}); print qq|
</font></TD></TR>
<TR><TD ALIGN="Right" VALIGN="TOP" WIDTH="150"><$font_color>Dishes:</FONT></TD>
<TD VALIGN="TOP" WIDTH="475"><$font_sm>
|; print &build_checkbox_field("Steaks",$rec{'Steaks'}); print qq|
|; print &build_checkbox_field("Vegetarian",$rec{'Vegetarian'}); print qq|
|; print &build_checkbox_field("Smorgasboard/Buffet",$rec{'Smorgasboard/Buffet'}); print qq|
|; print &build_checkbox_field("Poultry",$rec{'Poultry'}); print qq|
|; print &build_checkbox_field("Seafood",$rec{'Seafood'}); print qq|
|; print &build_checkbox_field("Pasta",$rec{'Pasta'}); print qq|
|; print &build_checkbox_field("Pizza",$rec{'Pizza'}); print qq|
|; print &build_checkbox_field("Bakery/Sandwiches",$rec{'Bakery/Sandwiches'}); print qq|
|; print &build_checkbox_field("Stir Frys",$rec{'Stir Frys'}); print qq|
</font></TD></TR>
sub html_record <tr><TD vAlign=top colspan="2"><$font_color>Cuisine:</font> <$font> $rec{'Australian'} $rec{'Mediterranean'} $rec{'Chinese'} $rec{'Japanese'} $rec{'Thai'} $rec{'Indian'} $rec{'French'} $rec{'Italian'} $rec{'Greek'}</FONT><br></TD></TR>