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"); } Quote Link to comment 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)) Quote Link to comment Share on other sites More sharing options...
LooieENG Posted July 12, 2008 Share Posted July 12, 2008 Edit: Oh, nvm. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.