글을 수정하면 셀렉트박스가 초기화 되요. 도와주세요. 정보
글을 수정하면 셀렉트박스가 초기화 되요. 도와주세요.본문
글을 작성할때 셀렉트박스에서 해당내용을 선택하고 적으면 잘되는데
이상하게 수정만 눌러서 들어가면 셀렉스박스가 초기화 되어있어요.
어떻게 해야되죠? ㅠ
<div class="box_body">
<form name='wrform' method='post' action="javascript:wrform_check(document.wrform);" enctype="multipart/form-data">
<input type='hidden' name='w' value='<?=$w?>'>
<input type='hidden' name='wr_id' value="<?=$wr_id?>">
<input type='hidden' name='request_type' value="<?=$ww?>">
<input type='hidden' name='wr_name' value='<?=$wr_name?>'>
<input type='hidden' name='word' value='<?=$word?>'>
<input type='hidden' name='biblion' value='<?=$biblion?>'>
<input type='hidden' name='req_date' value='<?=$write[wr_datetime]?>'>
<input type="hidden" name='print_flag' value=''>
</div>
<center>
<p></p><li class='title'>가입 신청서 (Beta v0.1) <div style='height:5px;'><!-- --></div>
<div class='tbl_outline'>
<table border="1" width="634">
<tr>
<? if ($member[mb_level] >= '10') { ?>
<td width="295" height="24" colspan="3">
<p>가 입 신 청 서 (Beta v0.1)</p>
</td>
<td width="95" height="24">접수처</td>
<td width="222" height="24">
<select name="charge4" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="엠디">엠디</option>
<option value="법인">법인</option>
<option value="리더스">리더스</option>
<option value="하이웨이">하이웨이</option>
</select>
</td>
<? } ?>
</tr>
<tr>
<td width="71" height="24">가입형태</td>
<td width="218" height="24" colspan="2">
<select name="company" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="신규가입">신규가입</option>
<option value="번호이동">번호이동</option>
<option value="보상기변">보상기변</option>
</select>
<script type="text/javascript">
wrform.company.value = "<?=$write[company]?>";
</script>
</td>
<td width="95" height="24">연락처</td>
<td width="222" height="24">
<input type="text" name="biblion4" value="<?=$biblion4?>" class='input_bg4'></td>
</tr>
<tr>
<td width="71">가입자 성명</td>
<td width="218" colspan="2">
<input type="text" name="word" value="<?=$word?>" class='input_bg1'></td>
<td width="95">주민등록번호</td>
<td width="222">
<input type="text" name="biblion" value="<?=$biblion?>" class='input_bg4'></td>
</tr>
<tr>
<td width="71">주소</td>
<td width="547" colspan="4">
<input type="text" name="tag" value="<?=$tag?>" class='input_bg3'></td>
</tr>
<tr>
<td width="71">단말기명</td>
<td width="218" colspan="2">
<input type="text" name="CD1" value="<?=$CD1?>" class='input_bg4'>
</td>
<td width="95">단말기 일련번호</td>
<td width="222">
<input type="text" name="biblion2" value="<?=$biblion2?>" class='input_bg4'></td>
</tr>
<tr>
<td width="71" height="20">단말기 색상</td>
<td width="218" height="20" colspan="2">
<select name="CD2" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="블랙">블랙</option>
<option value="화이트">화이트</option>
</select>
</td>
<td width="95" height="20">유심번호</td>
<td width="222" height="20">
<input type="text" name="biblion5" value="<?=$biblion5?>" class='input_bg4'></td>
</tr>
<tr>
<td width="71" height="20">은행명</td>
<td width="218" height="20" colspan="2">
<select name="MP3" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="우리은행">우리은행</option>
<option value="농협중앙회">농협중앙회</option>
<option value="국민은행">국민은행</option>
<option value="기업은행">기업은행</option>
<option value="경기은행">경기은행</option>
<option value="경남은행">경남은행</option>
<option value="광주은행">광주은행</option>
<option value="우체국">우체국</option>
<option value="충청은행">충청은행</option>
<option value="동화은행">동화은행</option>
<option value="신한은행">신한은행</option>
<option value="한국은행">한국은행</option>
<option value="농업협동">농업협동</option>
<option value="상호저축은행">상호저축은행</option>
<option value="새마을금고">새마을금고</option>
<option value="부산은행">부산은행</option>
<option value="외환은행">외환은행</option>
<option value="제일은행">제일은행</option>
<option value="제주은행">제주은행</option>
<option value="하나은행">하나은행</option>
<option value="전북은행">전북은행</option>
<option value="조흥은행">조흥은행</option>
<option value="신협">신협</option>
<option value="축협">축협</option>
</select>
</td>
<td width="95" height="20">계좌번호</td>
<td width="222" height="20">
<input type="text" name="WMV" value="<?=$WMV?>" class='input_bg4'></td>
</tr>
<? if ($member[mb_level] >= '2') { ?>
<tr>
<td width="71" height="20">택배회사</td>
<td width="218" height="20" colspan="2">
<select name="company3" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="대한통운">대한통운</option>
<option value="현대택배">현대택배</option>
<option value="로젠택배">로젠택배</option>
<option value="CJ택배">CJ택배</option>
<option value="우체국">우체국</option>
<option value="동부택배">동부택배</option>
</select>
</td>
<td width="95" height="20">택배 송장번호</td>
<td width="222" height="20">
<input type="text" name="hard" value="<?=$hard?>" class='input_bg4'></td>
</tr>
<? } ?>
<tr>
<td width="71" height="20">희망번호</td>
<td width="109" height="20">
1.<input type="text" name="preacher" value="<?=$preacher?>" class='input_bg1'>
</td>
<td width="103" height="20">
2.<input type="text" name="preacher2" value="<?=$preacher2?>" class='input_bg1'>
</td>
<td width="323" height="20" colspan="2">*신규가입이면 작성하세요*</td>
</tr>
<tr>
<td width="71" height="20">핸드폰 번호</td>
<td width="218" height="20" colspan="2">
<input type="text" name="charge" value="<?=$charge?>" class='input_bg2'></td>
<td width="323" height="20" colspan="2">*번호이동 또는 보상기변일 경우 작성하세요.</td>
</tr>
<tr>
<td width="71" height="20">인증번호</td>
<td width="109" height="20">
<select name="charge3" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="SKT">SKT</option>
<option value="KTF">KTF</option>
<option value="LGT">LGT</option>
</select>
</td>
<td width="103" height="20">
<input type="text" name="charge2" value="<?=$charge2?>" class='input_bg1'></td>
<td width="323" height="20" colspan="2">*번호이동이면 작성 꼭 하셔야 됩니다.</td>
</tr>
<tr>
<td width="71" height="20">배송지주소</td>
<td width="547" height="20" colspan="4">
<input type="text" name="CD3" value="<?=$CD3?>" class='input_bg3'></td>
</tr>
</table>
</div>
<div style='float:clear; font-size:11px; color:#707070; font-weight:normal;padding:5px 0 10px 30px;'>
<ul> <input type="checkbox" name="request_agree2" checked >
가입신청서를 작성을 동의합니다.
</ul>
</div>
<a href='javascript:submit_chk()' onfocus="this.blur()"><img src="./images/jaroo_ok_btn.gif" title="신 청"></a></span>
</p>
</div><p>
</div>이렇게 해논건데... 그래요.ㅠㅠ
이상하게 수정만 눌러서 들어가면 셀렉스박스가 초기화 되어있어요.
어떻게 해야되죠? ㅠ
<div class="box_body">
<form name='wrform' method='post' action="javascript:wrform_check(document.wrform);" enctype="multipart/form-data">
<input type='hidden' name='w' value='<?=$w?>'>
<input type='hidden' name='wr_id' value="<?=$wr_id?>">
<input type='hidden' name='request_type' value="<?=$ww?>">
<input type='hidden' name='wr_name' value='<?=$wr_name?>'>
<input type='hidden' name='word' value='<?=$word?>'>
<input type='hidden' name='biblion' value='<?=$biblion?>'>
<input type='hidden' name='req_date' value='<?=$write[wr_datetime]?>'>
<input type="hidden" name='print_flag' value=''>
</div>
<center>
<p></p><li class='title'>가입 신청서 (Beta v0.1) <div style='height:5px;'><!-- --></div>
<div class='tbl_outline'>
<table border="1" width="634">
<tr>
<? if ($member[mb_level] >= '10') { ?>
<td width="295" height="24" colspan="3">
<p>가 입 신 청 서 (Beta v0.1)</p>
</td>
<td width="95" height="24">접수처</td>
<td width="222" height="24">
<select name="charge4" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="엠디">엠디</option>
<option value="법인">법인</option>
<option value="리더스">리더스</option>
<option value="하이웨이">하이웨이</option>
</select>
</td>
<? } ?>
</tr>
<tr>
<td width="71" height="24">가입형태</td>
<td width="218" height="24" colspan="2">
<select name="company" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="신규가입">신규가입</option>
<option value="번호이동">번호이동</option>
<option value="보상기변">보상기변</option>
</select>
<script type="text/javascript">
wrform.company.value = "<?=$write[company]?>";
</script>
</td>
<td width="95" height="24">연락처</td>
<td width="222" height="24">
<input type="text" name="biblion4" value="<?=$biblion4?>" class='input_bg4'></td>
</tr>
<tr>
<td width="71">가입자 성명</td>
<td width="218" colspan="2">
<input type="text" name="word" value="<?=$word?>" class='input_bg1'></td>
<td width="95">주민등록번호</td>
<td width="222">
<input type="text" name="biblion" value="<?=$biblion?>" class='input_bg4'></td>
</tr>
<tr>
<td width="71">주소</td>
<td width="547" colspan="4">
<input type="text" name="tag" value="<?=$tag?>" class='input_bg3'></td>
</tr>
<tr>
<td width="71">단말기명</td>
<td width="218" colspan="2">
<input type="text" name="CD1" value="<?=$CD1?>" class='input_bg4'>
</td>
<td width="95">단말기 일련번호</td>
<td width="222">
<input type="text" name="biblion2" value="<?=$biblion2?>" class='input_bg4'></td>
</tr>
<tr>
<td width="71" height="20">단말기 색상</td>
<td width="218" height="20" colspan="2">
<select name="CD2" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="블랙">블랙</option>
<option value="화이트">화이트</option>
</select>
</td>
<td width="95" height="20">유심번호</td>
<td width="222" height="20">
<input type="text" name="biblion5" value="<?=$biblion5?>" class='input_bg4'></td>
</tr>
<tr>
<td width="71" height="20">은행명</td>
<td width="218" height="20" colspan="2">
<select name="MP3" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="우리은행">우리은행</option>
<option value="농협중앙회">농협중앙회</option>
<option value="국민은행">국민은행</option>
<option value="기업은행">기업은행</option>
<option value="경기은행">경기은행</option>
<option value="경남은행">경남은행</option>
<option value="광주은행">광주은행</option>
<option value="우체국">우체국</option>
<option value="충청은행">충청은행</option>
<option value="동화은행">동화은행</option>
<option value="신한은행">신한은행</option>
<option value="한국은행">한국은행</option>
<option value="농업협동">농업협동</option>
<option value="상호저축은행">상호저축은행</option>
<option value="새마을금고">새마을금고</option>
<option value="부산은행">부산은행</option>
<option value="외환은행">외환은행</option>
<option value="제일은행">제일은행</option>
<option value="제주은행">제주은행</option>
<option value="하나은행">하나은행</option>
<option value="전북은행">전북은행</option>
<option value="조흥은행">조흥은행</option>
<option value="신협">신협</option>
<option value="축협">축협</option>
</select>
</td>
<td width="95" height="20">계좌번호</td>
<td width="222" height="20">
<input type="text" name="WMV" value="<?=$WMV?>" class='input_bg4'></td>
</tr>
<? if ($member[mb_level] >= '2') { ?>
<tr>
<td width="71" height="20">택배회사</td>
<td width="218" height="20" colspan="2">
<select name="company3" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="대한통운">대한통운</option>
<option value="현대택배">현대택배</option>
<option value="로젠택배">로젠택배</option>
<option value="CJ택배">CJ택배</option>
<option value="우체국">우체국</option>
<option value="동부택배">동부택배</option>
</select>
</td>
<td width="95" height="20">택배 송장번호</td>
<td width="222" height="20">
<input type="text" name="hard" value="<?=$hard?>" class='input_bg4'></td>
</tr>
<? } ?>
<tr>
<td width="71" height="20">희망번호</td>
<td width="109" height="20">
1.<input type="text" name="preacher" value="<?=$preacher?>" class='input_bg1'>
</td>
<td width="103" height="20">
2.<input type="text" name="preacher2" value="<?=$preacher2?>" class='input_bg1'>
</td>
<td width="323" height="20" colspan="2">*신규가입이면 작성하세요*</td>
</tr>
<tr>
<td width="71" height="20">핸드폰 번호</td>
<td width="218" height="20" colspan="2">
<input type="text" name="charge" value="<?=$charge?>" class='input_bg2'></td>
<td width="323" height="20" colspan="2">*번호이동 또는 보상기변일 경우 작성하세요.</td>
</tr>
<tr>
<td width="71" height="20">인증번호</td>
<td width="109" height="20">
<select name="charge3" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="SKT">SKT</option>
<option value="KTF">KTF</option>
<option value="LGT">LGT</option>
</select>
</td>
<td width="103" height="20">
<input type="text" name="charge2" value="<?=$charge2?>" class='input_bg1'></td>
<td width="323" height="20" colspan="2">*번호이동이면 작성 꼭 하셔야 됩니다.</td>
</tr>
<tr>
<td width="71" height="20">배송지주소</td>
<td width="547" height="20" colspan="4">
<input type="text" name="CD3" value="<?=$CD3?>" class='input_bg3'></td>
</tr>
</table>
</div>
<div style='float:clear; font-size:11px; color:#707070; font-weight:normal;padding:5px 0 10px 30px;'>
<ul> <input type="checkbox" name="request_agree2" checked >
가입신청서를 작성을 동의합니다.
</ul>
</div>
<a href='javascript:submit_chk()' onfocus="this.blur()"><img src="./images/jaroo_ok_btn.gif" title="신 청"></a></span>
</p>
</div><p>
</div>이렇게 해논건데... 그래요.ㅠㅠ
댓글 전체
<select name="company" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="신규가입">신규가입</option>
<option value="번호이동">번호이동</option>
<option value="보상기변">보상기변</option>
</select>
이중에서 company 정보는 어디에 저장되나요 확장필드 1이라면
<select name="company" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="신규가입" <?=($wr_1=="신규가입")?'selected':'';?>>신규가입</option>
<option value="번호이동" <?=($wr_1=="번호이동")?'selected':'';?>>번호이동</option>
<option value="보상기변" <?=($wr_1=="보상기변")?'selected':'';?>>보상기변</option>
</select>
<option value=""> 선 택 </option>
<option value="신규가입">신규가입</option>
<option value="번호이동">번호이동</option>
<option value="보상기변">보상기변</option>
</select>
이중에서 company 정보는 어디에 저장되나요 확장필드 1이라면
<select name="company" style="width:90px;" onchange="if(this.value=='기타')";>
<option value=""> 선 택 </option>
<option value="신규가입" <?=($wr_1=="신규가입")?'selected':'';?>>신규가입</option>
<option value="번호이동" <?=($wr_1=="번호이동")?'selected':'';?>>번호이동</option>
<option value="보상기변" <?=($wr_1=="보상기변")?'selected':'';?>>보상기변</option>
</select>