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

clickable html_options value

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


Joined: 27 Jul 2006
Posts: 16
Location: Philippines

PostPosted: Mon Sep 18, 2006 7:49 am    Post subject: clickable html_options value Reply with quote

hi,

is it possible to make a html_options value (every value)to become clickable?
in my PHP script i have:
[php:1:deb1a45b75]
$qry = "SELECT * FROM ". TABLE_ORDERS_STATUS ."";
$result = $db->db_query($qry);
while($row = $db->db_fetch_array($result)) {
$arr[] = $row;
$statName[] = $row['orders_status_name'];
}
$smarty->assign("stat_option_values", $statName);
$smarty->assign("stat_option_output", $statName);
[/php:1:deb1a45b75]
and in my template i have a code like this:

Code:
   Sort:
                  <select id="stat" name="stat"/>
                        <option value="">All Orders</option>                          
                        {html_options values=$stat_option_values selected=$stat_option_selected output=$stat_option_output}
                        </select>


please help me how can i do this..?

thanks!
Back to top
View user's profile Send private message Yahoo Messenger
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