Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

HTML_options and Multi dimensional Arrays

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
sammy
Smarty n00b


Joined: 21 Apr 2003
Posts: 1
Location: Australia

PostPosted: Wed Jun 04, 2003 3:27 am    Post subject: HTML_options and Multi dimensional Arrays Reply with quote

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>


Cheers,
Sam.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP