[그누보드] 여분필드 wr_x 사용하는 여러가지 방법
페이지 정보
작성자 관리자 작성일16-01-29 10:00 조회3,779회 댓글0건본문
여분필드 wr_x 사용하는 여러가지 방법
1. 텍스트필드 사용할 경우
<input name=wr_1 itemname="wr_1" value="<?=$write[wr_1]?>">
<input name=wr_2 itemname="wr_2" value="<?=$write[wr_2]?>">
2. 라디오버튼 사용할 경우
<input type="radio" name=wr_1 value="원생" <?if($write[wr_1]=="원생")echo"checked";?>>원생
<input type="radio" name=wr_1 value="부모"<?if($write[wr_1]=="부모")echo"checked";?>>부모
<input type="radio" name=wr_1 value="교사" <?if($write[wr_1]=="교사")echo"checked";?>>교사
<input type="radio" name=wr_1 value="일반" <?if($write[wr_1]=="일반")echo"checked";?>>일반
3. 셀렉트박스 사용할 경우
<select name='wr_5' required itemname="소재지">
<option value=''>선택하세요</option>
<option value='충남' <? if($write[wr_5] == 충남) echo " selected "; ?>>충남</option>
<option value='충북' <? if($write[wr_5] == 충북) echo " selected "; ?>>충북</option>
<option value='전남' <? if($write[wr_5] == 전남) echo " selected "; ?>>전남</option>
<option value='전북' <? if($write[wr_5] == 전북) echo " selected "; ?>>전북</option>
</select>
4. 게시판에 우편번호를 사용할때 여분필드 이용
<input size=4 maxlength=3 name=wr_1 readonly itemname="우편번호앞자리" value="<?=$write[wr_1]?>"> - <input size=4 maxlength=3 name=wr_2 readonly itemname="우편번호뒷자리" value="<?=$write[wr_2]?>">
<input name=wr_3 readonly required itemname="주소" value="<?=$write[wr_3]?>">
<input name=wr_4 required itemname="상세주소" value="<?=$write[wr_4]?>">
<a href="javascript:;" onclick="win_zip('fwrite', 'wr_1', 'wr_2', 'wr_3', 'wr_4');"> 주소검색</a>
5. 체크박스를 사용할때
<input type=checkbox name=wr_1 value="1" <?=$write[wr_1]?>>사과
<input type=checkbox name=wr_1 value="1" <?=$write[wr_1]?>>바나나
<input type=checkbox name=wr_1 value="1" <?=$write[wr_1]?>>오렌지
<input type=checkbox name=wr_1 value="1" <?=$write[wr_1]?>>키위
1. 텍스트필드 사용할 경우
<input name=wr_1 itemname="wr_1" value="<?=$write[wr_1]?>">
<input name=wr_2 itemname="wr_2" value="<?=$write[wr_2]?>">
2. 라디오버튼 사용할 경우
<input type="radio" name=wr_1 value="원생" <?if($write[wr_1]=="원생")echo"checked";?>>원생
<input type="radio" name=wr_1 value="부모"<?if($write[wr_1]=="부모")echo"checked";?>>부모
<input type="radio" name=wr_1 value="교사" <?if($write[wr_1]=="교사")echo"checked";?>>교사
<input type="radio" name=wr_1 value="일반" <?if($write[wr_1]=="일반")echo"checked";?>>일반
3. 셀렉트박스 사용할 경우
<select name='wr_5' required itemname="소재지">
<option value=''>선택하세요</option>
<option value='충남' <? if($write[wr_5] == 충남) echo " selected "; ?>>충남</option>
<option value='충북' <? if($write[wr_5] == 충북) echo " selected "; ?>>충북</option>
<option value='전남' <? if($write[wr_5] == 전남) echo " selected "; ?>>전남</option>
<option value='전북' <? if($write[wr_5] == 전북) echo " selected "; ?>>전북</option>
</select>
4. 게시판에 우편번호를 사용할때 여분필드 이용
<input size=4 maxlength=3 name=wr_1 readonly itemname="우편번호앞자리" value="<?=$write[wr_1]?>"> - <input size=4 maxlength=3 name=wr_2 readonly itemname="우편번호뒷자리" value="<?=$write[wr_2]?>">
<input name=wr_3 readonly required itemname="주소" value="<?=$write[wr_3]?>">
<input name=wr_4 required itemname="상세주소" value="<?=$write[wr_4]?>">
<a href="javascript:;" onclick="win_zip('fwrite', 'wr_1', 'wr_2', 'wr_3', 'wr_4');"> 주소검색</a>
5. 체크박스를 사용할때
<input type=checkbox name=wr_1 value="1" <?=$write[wr_1]?>>사과
<input type=checkbox name=wr_1 value="1" <?=$write[wr_1]?>>바나나
<input type=checkbox name=wr_1 value="1" <?=$write[wr_1]?>>오렌지
<input type=checkbox name=wr_1 value="1" <?=$write[wr_1]?>>키위
댓글목록
등록된 댓글이 없습니다.