我刚刚雇了一个人来做一个安全的表格,下面粘贴的只是一段大代码:
$_POST = escape_all($_POST);
$some1 = $_POST['some1'];
$some2 = $_POST['some2'];
$some3 = $_POST['some3'];
$some4 = $_POST['some4'];
$some5 = $_POST['some5'];
$some6 = $_POST['some6'];
$some7 = $_POST['some7'];
$some8 = $_POST['some8'];
这是正确的方法还是我应该添加 mysql_real_escape_string(); 对所有变量?