<script type="text/javascript" charset="utf-8" src="js/kind/kindeditor.js"></script> <script type="text/javascript"> KE.show({ id : 'contact' });// </script> <form method="post" action="admin.php?mod=web_info&code=domodify" enctype="multipart/form-data"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder"> <tr align="center"> <td colspan="2" align="left" class="altbg1"><textarea name="contact" style="540px; height:300px;" id="content"></textarea> <center></center></td> </tr> <tr align="center"> <td width="20%" class="altbg1"> </td> <td align="left" class="altbg1"><input class="button" type="submit" name="cronssubmit3" value="提 交" /></td> </tr> <?php $_data = $_Post['data']; //入库 $data = addslashes($_data);//不加出问题 在指定的预定义字符前添加反斜杠。 $sets = array( 'data' => base64_encode(serialize($data))//转成二进制码,图片与url和中文 //用serialize函数将这个实例转化为一个序列化的字符串 ); //取出 $ret = unserialize(base64_decode($data)); //还原序列化 stripslashes($ret); //还原预定义的反斜杠
?>