Patriot Posted January 25, 2008 Share Posted January 25, 2008 I don't really know much about regex and PHP... how can I search a string to make sure it ONLY has letters (uppercase or lowercase) and numbers, and then return a bool answer? Thanks, Gil Link to comment https://forums.phpfreaks.com/topic/87824-solved-allow-only-letters-and-numbers-in-a-field/ Share on other sites More sharing options...
effigy Posted January 25, 2008 Share Posted January 25, 2008 ctype_alnum. Link to comment https://forums.phpfreaks.com/topic/87824-solved-allow-only-letters-and-numbers-in-a-field/#findComment-449265 Share on other sites More sharing options...
Patriot Posted January 26, 2008 Author Share Posted January 26, 2008 Jee... thanks! Link to comment https://forums.phpfreaks.com/topic/87824-solved-allow-only-letters-and-numbers-in-a-field/#findComment-449419 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.