I have used this code.
 
  $pattern="/^\s+[a-zA-Z]+$/";
        if(preg_match($pattern,$_POST['name']))
         {

                  Statements;
      }
 
But here still system not supporting for space.
 
Rinku
Tim Van Wassenhove <[EMAIL PROTECTED]> wrote:
In article <[EMAIL PROTECTED]>, Rinku wrote:

>> That's correct behaviour. The alphabet doesn't know what a space is ;)
>> Thus append the other allowed characters to your a-zA-Z interval.

> Can you pls tell me how to add space in name ?

If you reply under what is already written (and cut the irrelevant
things out) , things stay clear for everybody. 

As i mentionned before, use your regular expressions manual.
There you will find what \s and \w mean. 

-- 
Tim Van Wassenhove 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


                
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

Reply via email to