<div class="h_a"><div class="t"><div class="t_c"><div class="l"> <img src="/r/cms/www/red/img/exception-logo.jpg" alt="MyException - 代码迷"><div class="sd"><div class="st"> <span class="st_s">首页</span><ul> <li>Web开发</li> <li>Android</li> <li>J2EE</li> <li>PHP</li> <li>Linux/Unix</li> <li>MySql</li> <li>C#</li> <li>更多...</li> </ul> <div class="s"> <form action="http://www.daimami.com/search.jspx" name="formsearch" class="s_f"> <input name="q" value="在216万个软件开发解决方案中搜索" type="text" onfocus="if(this.value=='在216万个软件开发解决方案中搜索')this.value=''" onblur="if(this.value=='')this.value='在216万个软件开发解决方案中搜索'" maxlength="255" autocomplete="off" class="s_q"><input name="submit" id="btnSearch" type="submit" value="代码迷-搜索" class="s_s"> </form> <div class="m"><div class="m_a"><div class="c"><div class="le"><div class="c_l"> 当前位置: 代码迷 » PHP » PHP checkbox传值有关问题 <div class="c_t"> <h1>PHP checkbox传值有关问题</h1> <div class="c_a_1"><div class="c_t_b"><div class="c_au"> www.MyException.Cn,网友分享于:2014-06-30 浏览:4次 <div class="c_a_0"><div class="c_a_2"><div class="c_a_2_a"><div class="c_txt"><div class="c_a_3"> PHP checkbox传值问题<br><input><br><input><br><input><br><input><br><br>想通过post 传到相同页action里,把上边选定过的内容记录并在action自动显示刚才选定过的结果。<br><br>action里也是一样,但要自动取刚才选定过的值并勾上<br><input><br><input><br><input><br><input><br><br><br><br><font color="#FF8000">------解决思路----------------------</font><br><?php <br />if(isset($_POST['send'])){<br> $RadioGroup1 = isset($_POST['RadioGroup1'])? $_POST['RadioGroup1'] : array();<br>}else{<br> $RadioGroup1 = array();<br>}<br>?><br>nbsp;HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><br><br> <br> <meta> <br> <title> New Document </title> <br> <br><br> <br> <form> <br> A<input>checked="checked" } ?> /><br> B<input>checked="checked" } ?> /><br> C<input>checked="checked" } ?> /><br> D<input>checked="checked" } ?> /><br> <input><br> <input><br> </form> <br> <br><div class="clear"> </div> </div></div></div></div></div> </div></div></div> </div> </div></div></div></div></div> </div> </div></div> </div></div></div></div>