HTML_options and Multi dimensional Arrays

From: Date: Tue, 10 Jun 2003 02:55:54 +0000
Subject: HTML_options and Multi dimensional Arrays
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9687@lists.php.net to get a copy of this message
Hi, I have a quick question I have an 2 dimensional array that looks like this Array ( [20] => Array ( [0] => 1 [1] => 2 [2] => 3 ) [5] => Array ( [0] => 0 ) [1] => 1 )) In my template I have constructed a foreach loop that cycles through each menu to display the menu name with submenus. I want to use the select name to allow me to sequence all the submenu options for the current menu section. I have used the following html_options code without success. Anyone got any ideas how I can display each of the submenu sequences for each of the menus?? <select name="ov[<{$curmenu.id}>]"><{html_options values=$mnuseq[$curmenu.section] output=$mnuseq[$curmenu.section] selected=$curmenu.sequence}></select> Thanks in Advance.... Cheers, Sam.

« previous php.smarty.general (#9687) next »