// 检查 URL 地址语法是否有效(正则表达式也允许 URL 中的斜杠)      if (!preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]

*[-a-z0-9+&@#\/%=~_|]/i",$website)) {        $websiteErr = "无效的 URL";      }

$name=test_input($_POST["name"]);    if(!preg_match("/^[a-zA-Z ]*$/",$name)){     $nameErr = "姓名只能由字母组成";    }

相关文章:

  • 2021-05-29
  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
猜你喜欢
  • 2021-10-15
  • 2022-01-01
  • 2022-12-23
  • 2021-09-26
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案