iversonm Posted July 12, 2008 Share Posted July 12, 2008 ok again i have a question i am using someones code to check to makesure something is alpha numeric well i decided i wanted to all "-" allso but i doont know how to add it in here is the current code else if(!eregi("^([0-9 a-z])+$", $subdname)){ $form->setError($field, "* Display name not alphanumeric"); } Link to comment https://forums.phpfreaks.com/topic/114466-solved-check-to-see-if-alphanumeric/ Share on other sites More sharing options...
teynon Posted July 12, 2008 Share Posted July 12, 2008 else if(!eregi("^([0-9 a-z-])+$", $subdname)) Link to comment https://forums.phpfreaks.com/topic/114466-solved-check-to-see-if-alphanumeric/#findComment-588573 Share on other sites More sharing options...
LooieENG Posted July 12, 2008 Share Posted July 12, 2008 Edit: Oh, nvm. Link to comment https://forums.phpfreaks.com/topic/114466-solved-check-to-see-if-alphanumeric/#findComment-588577 Share on other sites More sharing options...
iversonm Posted July 12, 2008 Author Share Posted July 12, 2008 thankyou again ill just admit im a retard but thankyou for the help Link to comment https://forums.phpfreaks.com/topic/114466-solved-check-to-see-if-alphanumeric/#findComment-588578 Share on other sites More sharing options...
unsider Posted July 12, 2008 Share Posted July 12, 2008 thankyou again ill just admit im a retard but thankyou for the help Dont expect yourself to know everything, it's ok that you needed help We all do at one point. Link to comment https://forums.phpfreaks.com/topic/114466-solved-check-to-see-if-alphanumeric/#findComment-588579 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.