I have a form where the user has to enter full name in Arabic or English. but not number , How I can combine to expression with OR statment
I used the perg_match: For Arabic:
[php]if(preg_match("/\p{Arabic}/u", $_POST[“name”]) === 0) $errname = '
Please enter your full name - يرجى إدخال الإسم الكامل
'; [/php]For English:
[php]if(preg_match("/^[A-Z][a-zA-Z ]+$/ ", $_POST[“name”]) === 0) $errname = '
Please enter your full name - يرجى إدخال الإسم الكامل
'; [/php]thx