Thank you, Very much !!!
It worked fine.
Regards,
Rinku
"Jensen, Kimberlee" <[EMAIL PROTECTED]> wrote:
1. You have to allow for a space in your pattern - you can do so by hitting the space
bar or using \s. Here are some options
$pattern="/^[a-zA-Z ]+$/";
if(preg_match($pattern,$_POST['
1. You have to allow for a space in your pattern - you can do so by hitting the space
bar or using \s. Here are some options
$pattern="/^[a-zA-Z ]+$/";
if(preg_match($pattern,$_POST['name']))
{
$pattern="/^[a-zA-Z\s]+$/";
if(preg_match($pattern,$_POST['name']))
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..
As example: Name = "PHP Guide"
Then the system says name must be in alphabetic value. Pls find the codd No 1 for more
Details :
2)I want to validate a phone n
I am trying to check the variable for validation. I have written this code, but still
I am not getting expected output. Can any of you suggest me what is missing in this ?
Expected Output
1)If the variable is set and value is not alphabatic then system should say
"Alphabatic value require"