脚 本 之 家 www.jb51.net
页面导航:  不限条件-->Le
本地搜索:
<inputname="country"id="country"size=12value="disabled提交时得不到该值"disabled="disabled">放在form表单中提交后得不到该值。将disabled="disabled"改为readonly="readonly"即可按照W3C的规范:http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.12设置为disabled的input将会有下面的限制:不能接收焦点使用tab键时将被跳过可能不是successful的设置为readonly的input将会有下面的限...
http://www.jb51.net//article/15790.htm
问题:例如,实现如下$data=array('id'=>$_POST['id1'],'name'=>$_POST['name1']);$posts=$this->_modelstudent->findAll($data);页面上有idname的文本框可输入ID查询也可输入NAME查询也可同时输入查询;解决:写循环做判断例子如下:$conditions=null;$fields=array('id','name','sex','phone');foreach($fieldsas$each){if(!empty($_POST[$each])){if($conditions)...
http://www.jb51.net//article/15789.htm
page.php[code]<?php/****通用php分页类。(仿Google样式)**只需提供记录总数与每页显示数两个参数。(已附详细使用说明..)**无需指定URL,链接由程序生成。方便用于检索结果分页。**表单采用GET方法提交,可保证在诸如查询之,删除之类的操作时,不丢失URL参数**/classPager{//IE地址栏地址var$url;//记录总条数var$countall;//总页数var$page;//分页数字链接var$thestr;//首页、上一页链接var$backstr;//尾页、下一页链接var$nextstr;//当前页码var$pg;//每页显示记录数...
http://www.jb51.net//article/15631.htm
用以下命令可以查看所有的信号量:#ipcs-s------SemaphoreArrays--------keysemidownerpermsnsems0x0000000019234816nobody60010x0000000019267585nobody60010x0000000019300354nobody60010x0000000019398659nobody60010x0000000019431428nobody60010x0000000019464197nobody60010x0000000019562502nobody6001然后用这行命令删除所有的信号量即可:ipcs-s|grep...
http://www.jb51.net//article/15559.htm
这两个函数在格式化带有英文字符的html代码的时候基本没啥问题,但是htmlentities对中文字符也不放过,这样得出来的结果是中文字符部分变为一堆乱码。当时做英文站的时候根本就没觉察到这个问题,而今天公司的一个收藏站却因为有有非英文字符而出现了问题,我最终查出来是htmlentities这个函数的问题,同时我也找到了htmlspecialchars这个函数。对于这两个函数,php手册上都是英文做的解释,其中在htmlentities函数的说明部分有这么一段英文:Thisfunctionisidenticaltohtmlspecialchars()inallways,exceptwithht...
http://www.jb51.net//article/15527.htm
一、目前在ASP.NET中页面传值共有这么几种方式:1、表单提交,<form action= "target.aspx" method = "post" name = "form1"><input name = "param1" value = "1111"/><input name = "...
http://www.jb51.net//article/15476.htm
[html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head>  <title> csstable超出隐藏</title>&nb...
http://www.jb51.net//article/15474.htm
[html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" con...
http://www.jb51.net//article/15462.htm
常用的module是 os ,os.path 和shutil,所以要先引入他们.python遍历文件夹和文件这个也许是最常用的功能,如下:[code]import os import os.path rootdir = "D:\\programmer\\training" for parent, dirnames, filenames in os.walk(rootdir):     #case&...
http://www.jb51.net//article/15459.htm
object.OpenTextFile(filename[, iomode[, create[, format]]]) 参数 object :必选项。应为 FileSystemObject 对象的名称。 filename :必选项。字符串表达式,指明要打开的文件名称。 iomode :可选项。输入/输出模式,是下列三个常数之一:ForReading,ForWriting,或 ForAppending。 create :可选项。Boolean&nb...
http://www.jb51.net//article/15442.htm
<html><head>    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">    <title>Div下拉菜单被Select挡住的解决办法</title></head><body><div style="z-index: 10; position: absolute...
http://www.jb51.net//article/15413.htm
共有:743/10,当前6/75页  [首页] [上一页] 2 3 4 5 6 7 8 9 [下一页]  [尾页] 转到: