我正在尝试从服务器端验证表单数据.
我的兴趣是用户只需填写波斯字符的形式. @H_403_2@我正在使用这段代码:
我的兴趣是用户只需填写波斯字符的形式. @H_403_2@我正在使用这段代码:
$name=trim($_POST['name']); $name= MysqL_real_escape_string($name); if (preg_match('/^[\u0600-\u06FF]+$/',str_replace("\\\\","",$name))){$err.= "Please use Persian characters!";}@H_403_2@但它不工作! @H_403_2@这是一个警告:
Warning: preg_match() [function.preg-match]: Compilation Failed: PCRE does not support \L,\l,\N,\U,or \u at offset 3 in C:\xampp\htdocs\site\form.PHP on line 38@H_403_2@我能做什么?