proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« squid diskd 还是不稳定 | Main | mysql 表生成 nagios 配置 »

January 11, 2007

html checkbox 的处理

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2007/01/11/001191.html
http://windtear.net/archives/2007/01/11/001191.html

html checkbox 的处理

以前做这块代码的时候 做了不少javascript的代码工作
这次偷懒 在server端直接判断是否为空来处理了 (php perl)
if(empty($checkboxvar)) { $checkflag=0; } else { $checkflag=1; }
if($checkboxvar eq "") { $checkflag=0; } else { $checkflag=1; }

if($checkflag==1) { }


修改时原数据通过一个变量体现
"checked"  或者 ""
本blog WWW

Posted by windtear at January 11, 2007 10:30 PM

本站使用中的任何问题,请与 windtear @ windtear.net 联系
Copyright© 1999-2024 Windtear. All rights reserved.