I am creating a series of identical popup_menus within a template but I cannot work out how to assign each one a different name. At the moment I have numerous values of the last named menu.
There are other vars in the template which are loaded within the same loop before and after the room values.
I know I could store the values until after the last one has been assigned and then upload all the room vars at once but there must be a simpler way than that.
Keith
There are other vars in the template which are loaded within the same loop before and after the room values.
I know I could store the values until after the last one has been assigned and then upload all the room vars at once but there must be a simpler way than that.
Code:
$part values = Room1, Room2, Room3, Room4 etc.
$ROOMLIST= $query->popup_menu(-name=>$part,
-values=>\@RoomTypes,
-default=>$RoomType);
$template->param(ROOMTYPE => "$ROOMLIST");
Keith