hellos!..
I am trying to check that someone is inserting only strings in a textbox and I tried this code
//check region is okey for submission
if ( !preg_match("/^[a-z]+[\\w.-]*$/i", $region) ){
$error[] = 'please enter a correct region, without numbers';
}
now the problem is if a region has a space say Dar es Salaam still it says its an error…can someone please help me how to detect such regions.