View Single Post
  #2  
Old 05-17-2004, 06:53 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

Something like this assuming you're using the get method of a form. This also assumes you've passed $test properly to smarty.


Quote:
<select name=dropdown_name>
{section name=test_idx loop=$test}
<option value={$test[test_idx]} {if $smarty.get.category eq $test[test_idx]}selected{/if}>{$test[test_idx]}</option>
{/section}
</select>


Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote