Re: a way to check date entry
| From: | scottrus at ipass dot net | Date: | Tue, 17 Oct 2000 15:18:03 +0000 |
| Subject: | Re: a way to check date entry | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20644@lists.php.net to get a copy of this message | ||
I prefer to use strtotime(). It give the user much more flexability on the
date entry format and if they enter something that doesn't translate to a
valid date strtotime() returns a garbage date.
-- Scott
On Tue, Oct 17, 2000 at 09:39:43AM -0400, Daniel Convissor wrote: > Hey David:
>
> > I have seen a pick list used to select the date via the mouse.
> > but that seems kind of long-winded and requires taking hands
> > off the keyboard.
>
> It only requires that if the user doesn't realize they can tab into that form
> element and type the first number of the date they want, then hit alt-down,
> scroll though the list to find the item you want and hit enter. Okay, I'll
> shut up now.
>
>
> > Is there a simple way to check an entry and give a rejection message if
> > entered wrong?
>
> As Joe mentioned, checkdate() is a handy thing.
>
> Enjoy,
>
> --Dan
>
> --
> PHP scripts that make your job easier
> http://www.analysisandsolutions.com/code/
> SQL Solution | Layout Solution | Form Solution
> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
> 4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Scott