Home >Backend Development >PHP Tutorial >php怎样判断复选框是否被复选了?解决思路

php怎样判断复选框是否被复选了?解决思路

WBOY
WBOYOriginal
2016-06-13 10:16:54770browse

php怎样判断复选框是否被复选了?
php怎么判断复选框被复选了?

譬如一段php代码:
  if 复选框.checked
  {
  ...
  }
  else
  {
  ...
  }

判断语句怎么写?
 


------解决方案--------------------
if($_POST['name']){
//
}

Statement:
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