Re: [PHP] string->integer

2001-03-23 Thread Chris Lee
even better, verify the date as a whole rather then just as an int. there you go, try it. someone puts an invalid date in? no problem it fixes it for you. -- Chris Lee [EMAIL PROTECTED] ""Matt Williams"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] string->integer

2001-03-23 Thread Matt Williams
Hi I am trying to validate a form to check the user has entered there date of birth correctly There are three fields day, month & year. how can I check whether a string is a number? I have tried using is_long(), is_int(), is_integer() to check the values ,but it doesn't seem to be working. the