How to enable A-Z CHARS space in register page ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to enable A-Z CHARS space in register page ?

    Hi,
    i want to know how to enable a-z , A-Z characters ,space , while registering in wapdesire. Kindly help me
    PRACTICE MAKES PERFECT KEEP TRYING UNTIL YOU ACHIEVE SOMETHING IN LIFE.
    IF YOU LIKE WHAT AM SHARING PLEASE DO SAY THANKS!!!
    THANK YOU LOL

    #2
    $string = preg_replace('/[^a-zA-Z0-9 ]/', '', $string);
    Did I help you?
    You can help me too
    Your donations will help me finance my studies.

    Comment


      #3
      that wont work the way u want as itll take out any non a-z chars u want to use a function like this


      function UserChars($text)
      {
      if (!preg_match('/[^a-z]/i',$text)) return true;
      else return false;
      }

      if(!userchars($_GET['username'])){
      echo "you can only use A-Z chars";
      }else{

      }

      something like that will work

      Comment

      Working...
      X