易截截图软件、单文件、免安装、纯绿色、仅160KB

php解决checkbox问题

<script language="javascript" type="text/javascript">
function checkbox()
{
var str=document.getElementsByName("chk");
var objarray=str.length;
var chestr="";
for (i=0;i<objarray;i++)
{
if(str[i].checked == true)
{
chestr+="1";
} else{
chestr+="0";
}
}
document.getElementById("txtcheck").value=chestr;
}
</script>
<tr>
                           <td colspan="4"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                               <tr>
                                 <td width="4%" height="25" align="left"><input type="checkbox" value="c1" name="chk" /></td>
                                 <td width="12%" align="left">动力转向</td>
                                 <td width="5%" align="left"><input type="checkbox" value="c2" name="chk" /></td>
                                 <td width="7%" align="left">ABS</td>
               &n


相关文档:

PHP构造函数

 class A extends father{
    function __construct() {
        echo "abstract<br>";
            parent::base();     //父类方法
      &nb ......

PHP 操作Access (正确)

 第一种方法:
<?php
class Access{
    function getConn(){
        $conn = @new COM("ADODB.Connection") or die ("ADO连接失败!");
        $connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath(__IMP ......

php小笔记


<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@宋体" ......

计算最近一周的php程序

 
$curdate= date('N'); 
switch ($curdate)
{
case 1:
$diff='0,1,2,3,4,5,6';
break;
case 2:
$diff='-1,0,1,2,3,4,5';
break;
case 3:
$diff='-2,-1,0,1,2,3,4';
break;
case 4:
$diff='-3,-2,-1,0,1,2,3';
break;
case 5:
$diff='-4,-3,-2,-1,0,1,2';
break;
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号