Re: [SMARTY] controlling/preserving selected values from html_select_date

From: Date: Sat, 31 May 2003 18:25:43 +0000
Subject: Re: [SMARTY] controlling/preserving selected values from html_select_date
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9633@lists.php.net to get a copy of this message
I'm not sure if this is what you looking for but in the manual wich is very good writen http://smarty.php.net/manual/en/language.function.html.select.date.php it states that prefix should do that job. Anyway the default prefix is Date_Day, Date_Month, Date_Year ... So you could send it to the url... Hope its helps Onno Irfan Uygur wrote:
Hi everbody, I've recently started[discovered] using Smarty and I think it's great, really cuts down the development time. However I've stumbled upon one problem with html_select_date function: I want to control which values are selected from html_select_date , especially when dates are only a part of my registration screen. In case a user makes a mistake [for ex login name already created by another user] I show the same screen again , and preserve the values of previously filled values [for ex: sex, location etc.] But it seems like there is no option to control the values for html_select_date options. In "html_options" function I can control/preserve previously selected values by using the "selected" attribute, but it seems like there is no option for html_select_date. Did anyone find a solution for this already ? Or should I convert my html_select_date to html_options, but this defeats the purpose for using html_select_date .... Thanks in advance, Regards, Irfan Uygur


« previous php.smarty.general (#9633) next »