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

advise howto: begindate -> enddate

 
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
Enquest
Smarty Regular


Joined: 14 May 2003
Posts: 79

PostPosted: Sun Jun 22, 2003 11:22 am    Post subject: advise howto: begindate -> enddate Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Sun Jun 22, 2003 10:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
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