문의하기 체크박스 관련 문의 드립니다.
본문
글쓰기 한후 내용을 봐주세요.
write.skin 에다 넣은 내용은 아래와 같습니다.
<font size=3>여행인원 </font>
<input type="checkbox" name="wr_9" value="1인"<?php echo ($write['wr_9'] == "1인") ? " checked" : "";?>> 1인
<input type="checkbox" name="wr_9" value="2인"<?php echo ($write['wr_9'] == "2인") ? " checked" : "";?>> 2인
<input type="checkbox" name="wr_9" value="3인"<?php echo ($write['wr_9'] == "3인") ? " checked" : "";?>> 3인
<input type="checkbox" name="wr_9" value="4인"<?php echo ($write['wr_9'] == "4인") ? " checked" : "";?>> 4인
<input type="checkbox" name="wr_9" value="5인"<?php echo ($write['wr_9'] == "5인") ? " checked" : "";?>> 5인
<input type="checkbox" name="wr_9" value="6인이상"<?php echo ($write['wr_9'] == "6인이상") ? " checked" : "";?>> 6인이상
<br><br>
<font size=3>1인당 여행경비 </font>
<input type="checkbox" name="wr_10" value="100만원 미만"<?php echo ($write['wr_10'] == "100만원 미만") ? " checked" : "";?>> 100만원 미만
<input type="checkbox" name="wr_10" value="150만원 미만"<?php echo ($write['wr_10'] == "150만원 미만") ? " checked" : "";?>> 150만원 미만
<input type="checkbox" name="wr_10" value="200만원 미만"<?php echo ($write['wr_10'] == "200만원 미만") ? " checked" : "";?>> 200만원 미만
<input type="checkbox" name="wr_10" value="250만원 미만"<?php echo ($write['wr_10'] == "250만원 미만") ? " checked" : "";?>> 250만원 미만
<input type="checkbox" name="wr_10" value="기타예산"<?php echo ($write['wr_10'] == "기타예산") ? " checked" : "";?>> 기타예산
답변 1
일단 마크업부터..다시..하셔야할 것 같아요..
ul li div로 바꾸셔도됩니다
<table>
<tr>
<td class="td_subject">여행인원</td>
<td class="td_content">
<label for=""><input type="radio" value="1" name="wr_9">1명</label>
<label for=""><input type="radio" value="2" name="wr_9">2명</label>
<label for=""><input type="radio" value="3" name="wr_9">3명</label>
<label for=""><input type="radio" value="4" name="wr_9">4명</label>
</td>
</tr>
<tr>
<td class="td_subject">여행인원ㅁㄴㅇ</td>
<td class="td_content">
<label for=""><input type="radio" value="1" name="wr_9">1명</label>
<label for=""><input type="radio" value="2" name="wr_9">2명</label>
<label for=""><input type="radio" value="3" name="wr_9">3명</label>
<label for=""><input type="radio" value="4" name="wr_9">4명</label>
</td>
</tr>
<tr>
<td class="td_subject">여행인원ㅁㄴㅇㅁㄴㅇ</td>
<td class="td_content">
<label for=""><input type="radio" value="1" name="wr_9">1명</label>
<label for=""><input type="radio" value="2" name="wr_9">2명</label>
<label for=""><input type="radio" value="3" name="wr_9">3명</label>
<label for=""><input type="radio" value="4" name="wr_9">4명</label>
</td>
</tr>
</table>