[제나플러스] 글쓰기 후 수정을 하면 셀렉트박스가 원래대로 돌아가는 문제 해결
페이지 정보
본문
<SELECT class=field name='wr_10' required itemname='성별'>
<option value='무관' <? if($write[wr_10] == "무관") echo "selected"; ?>>무관</option>
<option value='남자' <? if($write[wr_10] == "남자") echo "selected"; ?>>남자</option>
<option value='여자' <? if($write[wr_10] == "여자") echo "selected"; ?>>여자</option>
</select>
<script language="JavaScript">document.fwrite.wr_10.value="<?=$write[wr_10]?>";</script>
<option value='무관' <? if($write[wr_10] == "무관") echo "selected"; ?>>무관</option>
<option value='남자' <? if($write[wr_10] == "남자") echo "selected"; ?>>남자</option>
<option value='여자' <? if($write[wr_10] == "여자") echo "selected"; ?>>여자</option>
</select>
<script language="JavaScript">document.fwrite.wr_10.value="<?=$write[wr_10]?>";</script>
<SELECT class=field name='wr_10' required itemname='성별'>
<option value='무관' <? if($write[wr_10] == "무관") echo "selected"; ?>>무관</option>
<option value='남자' <? if($write[wr_10] == "남자") echo "selected"; ?>>남자</option>
<option value='여자' <? if($write[wr_10] == "여자") echo "selected"; ?>>여자</option>
</select>
<option value='무관' <? if($write[wr_10] == "무관") echo "selected"; ?>>무관</option>
<option value='남자' <? if($write[wr_10] == "남자") echo "selected"; ?>>남자</option>
<option value='여자' <? if($write[wr_10] == "여자") echo "selected"; ?>>여자</option>
</select>
추천0
댓글목록
등록된 댓글이 없습니다.