I want function
从我的表单中删除所有这些字符
!@#$%^&*()-_+~`'";'|][/.,~
只接受英文字符link (abcdefgh ....)
在我的注册表单中使用
$text = "something$^£^£$&£";
$text= preg_replace('/[^'w'd_ -]/si', '', $text);
echo $text; // output something
看看PHP内建函数:
http://www.php.net/manual/en/function.filter-input.php您可以使用:jQuery插件:Validation.
它强大的