Home > Backend Development > PHP Tutorial > 如何判断一个checkbox已选

如何判断一个checkbox已选

WBOY
Release: 2016-06-13 13:10:50
Original
771 people have browsed it

怎么判断一个checkbox已选?

HTML code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
<input type="checkbox" onclick="selectAll()" id="choose_all" value="<?php if?> checked==" checked echo>">全选

Copy after login

我要取value的值,要求已选的时候是0,否则为空。上面的写法不对,求改正!

------解决方案--------------------
仿照着这个写就好了
checkbox解决方法
html
个人咨询

客户咨询

服务的咨询

其他咨询 

php
$zixun1 = $_POST["zixun1"];
for($i=0;$iecho $zixun1[$i]."
"
?>
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template