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 leaving me hanging

 
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
reformed1
Smarty Rookie


Joined: 13 Jun 2003
Posts: 19
Location: Sunny Phoenix, AZ

PostPosted: Thu Jul 24, 2003 10:31 pm    Post subject: html_options leaving me hanging Reply with quote

Is there any known problem or trick to get html_options to work with a default value? For example, I have this in an html_options structure:

Code:
{html_options options=$projectList selected=$info.5}


Now, $info.5 is comming from my database array and works everywhere else I use it except here. Even if I put a quoted string after the selected statement, my drop down does not show it. I have tried many different combinations to no avail. Any suggestions?

Rolling Eyes
_________________
We are no longer the knights who say......nee!
Back to top
View user's profile Send private message Visit poster's website
reformed1
Smarty Rookie


Joined: 13 Jun 2003
Posts: 19
Location: Sunny Phoenix, AZ

PostPosted: Fri Jul 25, 2003 5:06 pm    Post subject: Reply with quote

Well, to answer my own question and just in case anyone runs into this same problem, I miss-understood how the selected option works. You can't just put in an abitrary string, you must enter an index of the array that your are displaying.

I was hoping to put in a value that would appear in my drop down menu by default that said "choose" or something, but as far as I can tell this cannot be done. You can only display an index of your array. Please correct me if I'm wrong about this.
_________________
We are no longer the knights who say......nee!
Back to top
View user's profile Send private message Visit poster's website
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