PHP checkbox传值有关问题

WBOY
Release: 2016-06-13 12:01:03
Original
1395 people have browsed it
MyException - 代码迷
首页
  • Web开发
  • Android
  • J2EE
  • PHP
  • Linux/Unix
  • MySql
  • C#
  • 更多...
当前位置: 代码迷 » PHP » PHP checkbox传值有关问题

PHP checkbox传值有关问题

www.MyException.Cn,网友分享于:2014-06-30   浏览:4次
PHP checkbox传值问题





想通过post 传到相同页action里,把上边选定过的内容记录并在action自动显示刚才选定过的结果。

action里也是一样,但要自动取刚才选定过的值并勾上







------解决思路----------------------
if(isset($_POST['send'])){
    $RadioGroup1 = isset($_POST['RadioGroup1'])? $_POST['RadioGroup1'] : array();
}else{
    $RadioGroup1 = array();
}
?>
nbsp;HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

 
  
   New Document 
 

 

Achecked="checked" } ?> />
Bchecked="checked" } ?> />
Cchecked="checked" } ?> />
Dchecked="checked" } ?> />
    
    

 
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