<a onclick='loadXMLDoc2()' style="color: #fff;font-size:13px;padding:6 10 6 10px;
background: #333;margin-top:10px;text-decoration:none;border-radius:0 20px 20px...
php版本低于5.3解决json_encode中文UNICODE转码问题的代码
function decodeUnicode($str)
{
return preg_replace_callback('/\\\\u([0-9a-f]{4})/i',
create_function(
&nbs...
asp批量更新
exec="select * from YC_pic "
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,3
i=0
b=0
if not rs.eof then
do while not rs.eof
if rs("jstime")&...
asp Function函数
<%
'Function gg_pic(gg_picid)
' exec="select * from gg_pic where id="&gg_picid
' set rs=server.createobject("adodb.recordset")&...
asp远程获取链接并检测是否是正常网页
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("*.mdb")
exec="select * from 表名"
...
asp上传图片代码
<form action="upload.asp" method="post" enctype="multipart/form-data">
<input type="file" id="file1" name="file1" /><input name="" type="submit" value="保存编辑" />
&...
js单选按钮后显示不同的div
<!---单选后显示/隐藏层-->
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
$(funct...
js取消单选按钮radio的选中状态
var $gongyi_nan_shiban = $("input[name=gongyi_nan_shiban]");
var $gongyi_nv_shiban = $("input[name=gongyi_nv_shiban]");
$gongyi_nan_shiban.attr("checked",false);
$gongyi_nv_s...
PHP 复选框如何传递多个checkbox值
提交:
<input type='checkbox' name='ID[]' value='".$InfoID."' />
接收:
for($i=0;$i<count($_POST[ID]);$i++){
echo $_POST[ID][$i];}
这个OK,绝对没问题,不过建议:
<input...
asp 更新-访问量自增
<%
exec99="select * from YC_news where id="&request("id")
set rs99=server.createobject("adodb.recordset")
rs99.open exec99,conn,1,3
rs99("lll")=CInt(rs99("lll"))+1
rs99...