View Single Post
  #3  
Old 01-09-2009, 06:31 AM
 
AMMoyer AMMoyer is offline
 

Senior Member
  
Join Date: Nov 2008
Posts: 150
 

Default Re: Retaining selected Item in dropdown menu

My first attempt was without the {if} statements in the dropdown select lines and it won't retain the value after its picked. Is this because its loading a new page when the year is picked and the form is reset?

I have not tried the {foreach} or {section} method yet. I have tried the Smarty html_options statement that is commented out below the "hardcoded" select I'm working on now. It is filled from a db query in the php file and will not fill the combo box until I go to that php file in the browser, while the hardcoded way, and probably the {foreach} and {section} way load whenever the template is called.

What is the most correct way to get the Year to stick after there has been a value selected? Ideally I'd like it to remain whenever that template is called.

Thanks.
__________________
Adam
X-Cart Gold 4.4.5 - Live
X-Cart Gold 4.1.11 - Retired
X-Payments 1.0.4
CDSEO Pro
EWD Hosting
Reply With Quote