具體應該怎麼操作?+ }0 G1 E* a+ I
整個sszxedit文件的代碼如下,
+ m/ m; b) _3 y7 W6 H( F7 Q<?
# }8 n+ j7 e9 L1 N2 g! I ~5 U0 [include("in.php");
) Y3 m' J8 o& K2 i+ y, g: O8 Sif (empty($_POST['YXX']) or empty($_POST['YID']))0 }% T# ^1 L, a: Q! X4 ]5 M
{
- ~. C; t3 ~2 zecho "<script>alert('非法提交!請重新提交!');history.back();</script>";
7 S6 N. d, U* k; ]* W6 c& Yexit;
+ P$ r, j$ W6 N' }}
+ d2 u V! P$ x$YID=htmlencode2($_POST['YID']);
4 ~1 I1 U" v* Z8 H6 Q+ E$YXX=htmlencode2($_POST['YXX']);
5 y# {" ]0 y, T$exec="update ycs set YXX='".mb_substr(htmlencode2($_POST['YXX']),0,15,'gbk')."' where YZM=$yimaoid and YID=$YID and YLX='所屬小學'";. ?7 a7 e! [1 C! I- A0 L" [: V5 f
mysql_query($exec);
e$ Z' ?; W6 q2 W( n. ?, K' drequire 'ssxxphp.php';" u9 C8 K \9 ]7 _! V
mysql_close();1 }! M9 B1 Z) R* F
echo "<script>alert('修改成功!');history.back();</script>";
0 k: F& m; b& [$ ^+ O. `4 rexit;; _$ L, E7 a& Y% u% I
?> |