phpnoob80 Posted March 20, 2007 Share Posted March 20, 2007 hello, i am trying to use ctype_digit to check that an id passed in url contains only numbers. i had been using this thinking it was correct but then i noticed if i typed something like listid=#4 it would act as if # was numerical. am i doing something wrong or is this a quirk of ctype_digit? here is a typical use of it within my scripts if(ctype_digit($_GET['inviteid']) && ctype_digit($_GET['listid'])) { //carry on } else { //echo error } thanks jj Link to comment https://forums.phpfreaks.com/topic/43571-problem-with-ctype_digit/ Share on other sites More sharing options...
phpnoob80 Posted March 20, 2007 Author Share Posted March 20, 2007 sorry , my mistake, i found an error elsewhere. feel free to delete this thread Link to comment https://forums.phpfreaks.com/topic/43571-problem-with-ctype_digit/#findComment-211619 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.