Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

html_select_date help

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
ThermoDust
Smarty Regular


Joined: 10 Sep 2003
Posts: 38

PostPosted: Sat Oct 25, 2003 5:40 pm    Post subject: html_select_date help Reply with quote

How can I make it so I can choose what month, date, and year is selected? The select is in bold that I'm talking about.

Code:
<option label="October" value="10" selected="selected">October</option>


selected="selected">
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Sat Oct 25, 2003 7:59 pm    Post subject: Reply with quote

see the "time"-attribute at http://smarty.php.net/manual/en/language.function.html.select.date.php
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ThermoDust
Smarty Regular


Joined: 10 Sep 2003
Posts: 38

PostPosted: Sun Oct 26, 2003 5:01 pm    Post subject: Reply with quote

Why is it when I place
Code:
{html_select_date time={$_POST.Date_Year}-{$_POST.Date_Month}-{$_POST.Date_Day} start_year="-100"}
in it returns the current date then
Code:
-03-26 start_year="-100"}
.
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Sun Oct 26, 2003 7:01 pm    Post subject: Reply with quote

because you can't nest smarty-tags.

see http://smarty.php.net/manual/en/language.syntax.quotes.php on how to get your $_POST.Date_*-vars passed to the functions.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ThermoDust
Smarty Regular


Joined: 10 Sep 2003
Posts: 38

PostPosted: Sun Oct 26, 2003 7:33 pm    Post subject: Reply with quote

Cool, can't belive I didn't think of that... Thanks for the help.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP