我有一个用户输入汽车注册的表格,所以我只想允许数字和字母?
if(preg_match("/(A-Za-z0-9]+/", $to)){
$errors[] = "Only use numbers and letters please";}
得到错误...
Warning: preg_match() [function.preg-match]: Compilation failed: missing ) at offset 12 in /homepages/28/d420353834/htdocs/regupdate.php on line 84
所以我猜我弄错了。