Help - Search - Member List - Calendar
Full Version: Is there a way to check for valid date?
WorkTheWeb Forums > Webmaster Resources > PHP Help
Support our Sponsors!
bob engler
I've developed a php online quote page that works fine
with IE. It uses a java script routine dlcalendar.js for the
date inputs. People with AOL and using MACs can't get
this to work. With this routine, it displays a Calendar that
lets you select the day for that month and you can use
'<' or '>' to change the month and year for a new monthly
calendar. Is there a php routine that would accept the day,
month, year and check their validity such as when Feb
has 29 days?

Thanks.......

Veikko Mkinen
bob engler wrote:
QUOTE
Is there a php routine that would accept the day,
month, year and check their validity such as when Feb
has 29 days?

http://www.php.net/mktime


-veikko

--
veikko
mail@ .com
makinen

Geoff Berrow
I noticed that Message-ID: <d8cs87$dg$[Email Removed]> from Veikko
Mkinen contained the following:

QUOTE
Is there a php routine that would accept the day,
month, year and check their validity such as when Feb
has 29 days?

http://www.php.net/mktime

and

http://uk2.php.net/manual/en/function.checkdate.php


--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011

bob engler
Thanks to you both. That should allow me to change the way I get the dates
and still have correct data.

Bob


"bob engler" <[Email Removed]> wrote in message
news:G_lqe.999$[Email Removed]...
QUOTE
I've developed a php online quote page that works fine
with IE. It uses a java script routine dlcalendar.js for the
date inputs. People with AOL and using MACs can't get
this to work. With this routine, it displays a Calendar that
lets you select the day for that month and you can use
'<' or '>' to change the month and year for a new monthly
calendar. Is there a php routine that would accept the day,
month, year and check their validity such as when Feb
has 29 days?

Thanks.......






PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2006 Invision Power Services, Inc.