具体应该怎么操作?
整个sszxedit文件的代码如下,
<?
include("in.php");
if (empty($_POST['YXX']) or empty($_POST['YID']))
{
echo "<script>alert('非法提交!请重新提交!');history.back();</script>";
exit;
}
$YID=htmlencode2($_POST['YID']);
$YXX=htmlencode2($_POST['YXX']);
$exec="update ycs set YXX='".mb_substr(htmlencode2($_POST['YXX']),0,15,'gbk')."' where YZM=$yimaoid and YID=$YID and YLX='所属小学'";
mysql_query($exec);
require 'ssxxphp.php';
mysql_close();
echo "<script>alert('修改成功!');history.back();</script>";
exit;
?> |