On 15/01/2008, Adam Williams <[EMAIL PROTECTED]> wrote: > > I'm having users enter dates in MM-DD-YYYY format. is there a way to > check if what they have entered is invalid (like if they enter 1-15-2008 > instead of 01-15-2008) ? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > You could use check boxes to make sure you get the right format first time and concatenate the results, or use strlen() to check there are enough characters and/or a regular expression.
- [PHP] checking user input of MM-DD-YYYY Adam Williams
- Re: [PHP] checking user input of MM-DD-YYYY Per Jessen
- Re: [PHP] checking user input of MM-DD-YYYY Nathan Nobbe
- Re: [PHP] checking user input of MM-DD-YYYY Tom Chubb
- Re: [PHP] checking user input of MM-DD-YYYY Richard Heyes
- Re: [PHP] checking user input of MM-DD-YYYY Nathan Nobbe
- Re: [PHP] checking user input of MM-DD-YYYY Per Jessen
- Re: [PHP] checking user input of MM-DD-YYYY Nathan Nobbe
- Re: [PHP] checking user input of MM-DD-YYYY Richard Lynch
- Re: [PHP] checking user input of MM-DD... Daniel Brown
- Re: [PHP] checking user input of M... Nathan Nobbe
- Re: [PHP] checking user input of M... Per Jessen
- Re: [PHP] checking user input of MM-DD-YYYY clive
- Re: [PHP] checking user input of MM-DD-YYYY Per Jessen