라디오버튼 작동이 잘 안됩니다.

폭풍 문의 드려서 죄송합니다. 라디오버튼에 대한 문의는 없는것 같아 궁금해서 질문합니다.

체크박스를 응용하여 라디오 버튼을 만들었는데요 어떤부분에서는 작동하는듯 보이나 하나씩 눌러보며 검토해보면 

입력이 제대로 안될때가 있습니다. 

 

건물유형: 주택:상가:

이렇게 라디오는 출력이 안될때도 있구요

잘될때는 

건물유형:주택:[단독주택]상가:[기타]

이렇게 나오기도 하는데 원리를 모르겠습니다.

 


        <div class="kboard-attr-row">
            <label class="attr-name"><?php echo __('건물유형')?></label>
                <div class="attr-value">
                            <label><input type="hidden" name="kboard_option_c1_1" value=""><input type="checkbox" name="kboard_option_c1_1" value="1" <?php if($content->option->c1_1=='1'):?> checked<?php endif?>>주택[</label>
                            <label><input type="hidden" name="kboard_option_r1_1" value=""><input type="radio" name="kboard_option_r1_1" value="1" <?php if($content->option->r1_1=='1'):?> checked<?php endif?>>아파트</label>
                            <label><input type="hidden" name="kboard_option_r1_1" value=""><input type="radio" name="kboard_option_r1_1" value="2" <?php if($content->option->r1_1=='2'):?> checked<?php endif?>>빌라</label>
                            <label><input type="hidden" name="kboard_option_r1_1" value=""><input type="radio" name="kboard_option_r1_1" value="3" <?php if($content->option->r1_1=='3'):?> checked<?php endif?>>단독주택]</label>
                            </div>
            <label class="attr-name"><?php echo __(' ')?></label>            
                <div class="attr-value">            
                            <label><input type="hidden" name="kboard_option_c1_2" value=""><input type="checkbox" name="kboard_option_c1_2" value="1" <?php if($content->option->c1_2=='1'):?> checked<?php endif?>>상가[</label>
                            <label><input type="hidden" name="kboard_option_r1_2" value=""><input type="radio" name="kboard_option_r1_2" value="1" <?php if($content->option->r1_2=='1'):?> checked<?php endif?>>사무실</label>
                            <label><input type="hidden" name="kboard_option_r1_2" value=""><input type="radio" name="kboard_option_r1_2" value="2" <?php if($content->option->r1_2=='2'):?> checked<?php endif?>>병원</label>
                            <label><input type="hidden" name="kboard_option_r1_2" value=""><input type="radio" name="kboard_option_r1_2" value="3" <?php if($content->option->r1_2=='3'):?> checked<?php endif?>>학원</label>
                            <label><input type="hidden" name="kboard_option_r1_2" value=""><input type="radio" name="kboard_option_r1_2" value="4" <?php if($content->option->r1_2=='4'):?> checked<?php endif?>>카페</label>
                            <label><input type="hidden" name="kboard_option_r1_2" value=""><input type="radio" name="kboard_option_r1_2" value="5" <?php if($content->option->r1_2=='5'):?> checked<?php endif?>>기타]</label>

                </div>
        </div>  

 

 

<div class="detail-details">건물유형 : <?php if($content->option->c1_1=='1') echo '주택: '; if($content->option->r1_1=='1') echo '[아파트]'; if($content->option->r1_1=='2') echo '[빌라]'; if($content->option->r1_1=='3') echo '[단독주택]'; if($content->option->c1_2=='1') echo '상가: '; if($content->option->r1_2=='1') echo '[사무실]'; if($content->option->r1_2=='2') echo '[병원]'; if($content->option->r1_2=='3') echo '[학원]'; if($content->option->r1_2=='4') echo '[카페]'; if($content->option->r1_2=='5') echo '[기타]';?></div>

 

에디터와 도큐먼트 올려드립니다. 

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요