联系官方销售客服
1835022288
028-61286886
DIY时遍历数组赋值出错要怎么改
$code = ''; $data = \Phpcmf\Service::C()->member_cache['group']; $value = dr_string2array($value); foreach ($data as $v => $n) { $code.= '<label><div class="input-group"><span class="input-group-addon">'.$n['name'].'</span><input type="text" class="form-control" name="data['.$name.']['.$v.']" value="'.(string)$value[$v].'" /></div></label>'; foreach ($n[level] as $v => $n) { $code.= '<label><div class="input-group"><span class="input-group-addon" style="background-color:white">'.$n['name'].'</span><input type="text" class="form-control" name="data['.$name.']['.$v.']" value="'.(string)$value[$v].'" /></div></label>'; } }
“注册用户”输入框和“中级vip”输入框两处没有显示自己填写的值,显示的是其他组或级别填写的值