+ -
当前位置:首页 → 问答吧 → input单选按钮数据无法写入数据库,帮忙看下程序有错么

input单选按钮数据无法写入数据库,帮忙看下程序有错么

时间:2011-09-03

来源:互联网

表单提交后,唯独这个数据没有写入,是哪里出问题了呢?
引用:
       <label for="c_id2"><em>*</em><?php echo 'hundan';?> </label>
                     <div class="money">
                            <span class="f-radio">                                    
                     <?php foreach($list as $var):
                            $s = $var['id'];
                     ?>           
        <label class ="free" for ="$s"> <input type="radio" <?php if(isset($event['c_id2']) && $event['c_id2'] == $s){echo 'checked="checked"';}?> value="$s" name="c_id2" id="$s" /><?php echo $var['name'];?> </label>
                     <?php endforeach;?>   
                   </span>
                     </div>
[ 本帖最后由 dancingyomin 于 2011-9-3 09:07 编辑 ]

作者: dancingyomin   发布时间: 2011-09-03

你先看看这个代码生成的html

作者: waterisi   发布时间: 2011-09-03

热门下载

更多