Re: Re: Validate Value
| From: | Rinku | Date: | Sun, 11 Jul 2004 12:53:56 +0000 |
| Subject: | Re: Re: Validate Value | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-35196@lists.php.net to get a copy of this message | ||
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@pi.be> wrote:
In article <20040711102845.20709.qmail@web54108.mail.yahoo.com>, 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!