Jump to content

[SOLVED] check to see if alphanumeric


iversonm

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.