Re: [SMARTY] Select empty on {html_select_date}

From: Date: Tue, 18 Jul 2006 14:47:27 +0000
Subject: Re: [SMARTY] Select empty on {html_select_date}
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13470@lists.php.net to get a copy of this message
messju mohr wrote:
On Tue, Jul 18, 2006 at 10:17:16AM -0400, John Nichel wrote:
Hi, I'm trying to output a date dropdown with {html_select_date}, and have the default selected fields blank. My tag looks like this... { html_select_date prefix="start" month_format="%b" end_year="+5" year_empty="" month_empty="" day_empty="" field_order="DMY" } and it has an empty field for day, month and year at the top of the drop down boxes, but by default it is selecting the current date. How can I (if I can) get it to have those empty values selected by default? TIA
add an attribute ' time="--" ' to indicate you want empty days months and years and not current ones. HTH messju
Cool, thanks. I had tried time=0, figured that's where the answer lied, but, "missed it by that much". -- John C. Nichel IV Programmer/System Admin Dot Com Holdings of Buffalo 716.856.9675 jnichel@dotcomholdingsofbuffalo.com

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