Use a regular expression. Copy Code. if (preg_match(/^[A-Za-z0-9.,+]/, $_POST['your_field']) == 0) // text is good
確定! 回上一頁