controlling/preserving selected values from html_select_date
| From: | Irfan Uygur | Date: | Sun, 01 Jun 2003 18:06:53 +0000 |
| Subject: | controlling/preserving selected values from html_select_date | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9632@lists.php.net to get a copy of this message | ||
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