|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Enquest Smarty Regular
Joined: 14 May 2003 Posts: 79
|
Posted: Sun Jun 22, 2003 11:22 am Post subject: advise howto: begindate -> enddate |
|
|
I have a little app wich uses {html_select_date}
One to give a begin date and a second with an enddate.
Now I want to make sure that the enddate will never be smaller then the begindate. What would be the best way to make this happen? _________________ -----------------------
Learning my self by trying to help others |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Sun Jun 22, 2003 10:31 pm Post subject: |
|
|
If you're talking about the default values for the form, compare the dates in your PHP application before calling the template. If you are talking about the dates entered into the form by the user, you'll have to compare them after they submit the form (again in your PHP app), or with javascript on the form itself.
The template functions won't compare these dates, that's not their job.
Monte |
|
Back to top |
|
|
|
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
|