易截截图软件、单文件、免安装、纯绿色、仅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

 PHP站点的在线教程已经很棒了。在那里还有一些其他教程的链接。而本文的该部分将让你对PHP熟悉一点。我不可能做到没有任何遗漏,我的目的只在于能让你迅速开始你的PHP编程。
2.1 首要条件
你首先必须要有一个正在工作着的支持PHP的web服务器。我假定在你的服务器上所有PHP文件的扩展名为.php3。
2.2 PHP的安装
生 ......

PHP中的ereg()与eregi()函数的不同


ereg()
字符串比对解析。
语法: int ereg(string pattern, string string, array [regs]);
返回值: 整数/数组
函数种类: 资料处理
内容说明
本函数以 pattern 的规则来解析比对字符串 string。比对结果返回的值放在数组参数 regs 之中,regs[0] 内容就是原字符串 string、regs[1] 为第一个合乎规则的字符串、regs ......

LINUX下 httpd.conf my.cnf php.ini的位置

 
默认:
httpd.conf 在/etc/httpd/conf
my.cnf 在/etc
php.ini 在/usr/local/lib
在Unix 上,php.ini文件缺省放在/usr/local/lib上面,因为缺省的存放路径是<install-path>
/lib,但是可以在编译的时候使用--with-config-file-path参数来修改php.ini的存放位置,例如你可以使用--with-
config-file-path ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号