具體應該怎麼操作?
A. [6 j0 \, p) D w# i$ _) y整個sszxedit文件的代碼如下,. _4 @* B& l! Z% o, [! L
<?
" V$ \3 S, T( g7 Z# ?include("in.php");
( ^8 _% X* F" O1 L# U* R2 H" gif (empty($_POST['YXX']) or empty($_POST['YID']))
9 z# M9 H- z/ X& j8 |9 e, k9 N{
4 a3 z" [. ~* F" r2 R9 s N' Techo "<script>alert('非法提交!請重新提交!');history.back();</script>";! ]1 Y& W- T/ B* q7 Q6 j7 Z* z
exit;
$ b8 l% n8 ^6 N+ _0 C}" W4 L: v2 G5 w0 U' D1 W* \
$YID=htmlencode2($_POST['YID']);
, w: w. ~+ {, r; n$YXX=htmlencode2($_POST['YXX']);7 P) L4 a4 e u, v# y% z+ q
$exec="update ycs set YXX='".mb_substr(htmlencode2($_POST['YXX']),0,15,'gbk')."' where YZM=$yimaoid and YID=$YID and YLX='所屬小學'";; W3 S* t2 Z+ Y
mysql_query($exec);
3 q6 v* U4 a7 i; w: P- F$ L5 srequire 'ssxxphp.php';
- Q9 i5 {, C/ a g: z L) Amysql_close();
0 i1 [$ V& Z. T0 K& V' g( F( t! Fecho "<script>alert('修改成功!');history.back();</script>";
0 ^! T: P H1 bexit;" M. z& R1 ?/ j- @1 M
?> |