1
如何查找字符串是否包含带preg_match的“script”标记,...? 我想,如果数据为“脚本”使用preg_match“脚本”验证cakephp 1.3控制器中的字符串
$short_status = $this->params['form']['value'];
$regex = '/^[<script>]$/i';
if(preg_match($regex, $short_status))
{
die();
}
else
{
to process post and save to database,...
在此先感谢, 克里斯