Re: Re: Validate Value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <euki@xxxxx> wrote:
In article <20040711102845.20709.qmail@xxxxxxxxxxxxxxxxxxxxxxx>, 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!

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux