Re: [PHP-DB] Re: Validate Value

2004-07-11 Thread Tim Van Wassenhove
In article <[EMAIL PROTECTED]>, Rinku wrote: > --0-1101702729-1089550436=:23431 > Content-Type: text/plain; charset=us-ascii > > I have used this code. > > $pattern="/^\s+[a-zA-Z]+$/"; > if(preg_match($pattern,$_POST['name'])) > { > > Statements; > } >

Re: [PHP-DB] Re: Validate Value

2004-07-11 Thread Rinku
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 wro

Re: [PHP-DB] Re: Validate Value

2004-07-11 Thread Tim Van Wassenhove
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 irr

Re: [PHP-DB] Re: Validate Value

2004-07-11 Thread Ruprecht Helms
Rinku wrote: Can you pls tell me how to add space in name ? by using   or by using the using the ascii-code of that combined with the char-command. Regards, Ruprecht -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Re: Validate Value

2004-07-11 Thread Rinku
Can you pls tell me how to add space in name ? Regards, Rinku Tim Van Wassenhove <[EMAIL PROTECTED]> wrote: In article <[EMAIL PROTECTED]>, Rinku wrote: > --0-775821546-1089528419=:27331 > Content-Type: text/plain; charset=us-ascii > > Pls guide on following. > 1) I want to validate name for a

[PHP-DB] Re: Validate Value

2004-07-11 Thread Tim Van Wassenhove
In article <[EMAIL PROTECTED]>, Rinku wrote: > --0-775821546-1089528419=:27331 > Content-Type: text/plain; charset=us-ascii > > Pls guide on following. > 1) I want to validate name for a alphabetic value, But if I give space between 2 > words then its not supporting.. That's correct behaviour. T