I've seen a lot of posts trying to answer this is a lot of wierd ways. This is a trivial problem. You must read how PHP handles variables: http://www.php.net/manual/en/language.types.type-juggling.php http://www.php.net/manual/en/language.types.integer.php#language.types.integer.casting and really you should read these, since you're even asking this question: http://www.php.net/manual/en/language.types.php http://www.php.net/manual/en/ref.variables.php Hans Z. New York PHP http://nyphp.org --- Lachlan Cannon <luminosity at members.evolt.org> wrote: > I'm currently trying to test if a year passed as part of a query > string is a > numeral or not. I am using urls with slashes instead of a query > string, and > breaking it up in php, so it comes originally as a string. This > presents a > problem, because I can't test to see if the number passed for a year > is a > numeral or not, since it came as a string. I can't just convert it > across to > be a numeral - I want to give an error page on incorrect values > entered. How > can I test to see if it really is a number? > > Thanks > > Lach > > <tip author="Lachlan" type="PHP"> > A 'stable' version of PHP-GTK has been released and can be downloaded > at > http://gtk.php.net . PHP-GTK can be used to make cross platform GUI > applications using PHP. > </tip> > > > -- > For unsubscribe and other options, including > the Tip Harvester and archive of thelist go to: > http://lists.evolt.org Workers of the Web, evolt ! __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/