Re: a way to check date entry
| From: | Joe Stump | Date: | Tue, 17 Oct 2000 06:45:31 +0000 |
| Subject: | Re: a way to check date entry | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20549@lists.php.net to get a copy of this message | ||
check the syntax for check_date(); it makes sure it's a valid date - make sure
that they put in a decent date (ie yyyy-mm-dd). I would recommend 3 text boxes
if you are worried about mouse use (length 4, 2, 2)
--Joe
On Tue, Oct 17, 2000 at 01:26:31AM +0000, David Banning wrote:
> I am writing a first time application in php-mysql.
>
> Is there a way to force date entry to be correct?
> 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.
>
> Is there a simple way to check an entry and give a rejection message if
> entered wrong?
>
>
> --
> 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
/*****************************\
* Joe Stump *
* www.Care2.com *
* Office: 650.328.0198 *
* Extension: 122 *
\*****************************/
http://www.miester.org/Joe/Stump/Joe_Stump_resume.html
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$
N+@ o? K? w---! O-@ M+@ V-! P(++) PE(+) Y+@ PGP+++@ t+@
5? R-! tv@ b+ DI++@ D(++++) G++@ e+@ h@ r+! z(+++++**)!
------END GEEK CODE BLOCK------