추가한 checkbox 필드값 수정 문제

안녕하세요~

input type="checkbox" 를 필드값으로 추가하였는데요

수정하러 들어가보니 체크상태가 풀려있습니다~

이럴때는 어떤방법이있나요?

 

<div class="attr-value">
				<input type="hidden" name="kboard_option_type_chk1" value="">
				<input type="checkbox" name="kboard_option_type_chk1" value='<img src="/wp-content/uploads/detail_kboard/certified_logo_1.jpg" />'<?php if($content->option->type_chk1 == '<img src="/wp-content/uploads/detail_kboard/certified_logo_1.jpg" />'):?> checked<?php endif?>> 우수제품
				<input type="hidden" name="kboard_option_type_chk2" value="">
				<input type="checkbox" name="kboard_option_type_chk2" value='<img src="/wp-content/uploads/detail_kboard/certified_logo_2.jpg" />'<?php if($content->option->type_chk2 == '<img src="/wp-content/uploads/detail_kboard/certified_logo_2.jpg" />'):?> checked<?php endif?>> 특허
				<input type="hidden" name="kboard_option_type_chk3" value="">
				<input type="checkbox" name="kboard_option_type_chk3" value='<img src="/wp-content/uploads/detail_kboard/certified_logo_3.jpg" />'<?php if($content->option->type_chk3 == '<img src="/wp-content/uploads/detail_kboard/certified_logo_3.jpg" />'):?> checked<?php endif?>> 친환경
				<input type="hidden" name="kboard_option_type_chk4" value="">
				<input type="checkbox" name="kboard_option_type_chk4" value='<img src="/wp-content/uploads/detail_kboard/certified_logo_4.jpg" />'<?php if($content->option->type_chk4 == '<img src="/wp-content/uploads/detail_kboard/certified_logo_4.jpg" />'):?> checked<?php endif?>> 성능인증
				<input type="hidden" name="kboard_option_type_chk5" value="">
				<input type="checkbox" name="kboard_option_type_chk5" value='<img src="/wp-content/uploads/detail_kboard/certified_logo_5.jpg" />'<?php if($content->option->type_chk4 == '<img src="/wp-content/uploads/detail_kboard/certified_logo_5.jpg" />'):?> checked<?php endif?>> 단체표준
				<input type="hidden" name="kboard_option_type_chk6" value="">
				<input type="checkbox" name="kboard_option_type_chk6" value='<img src="/wp-content/uploads/detail_kboard/certified_logo_6.jpg" />'<?php if($content->option->type_chk4 == '<img src="/wp-content/uploads/detail_kboard/certified_logo_6.jpg" />'):?> checked<?php endif?>> 굿디자인
			</div>

이렇게 진행해보니 제 생각과는 결과값이 다르네요 ..

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기