폼메일 중에 체크박스를 라디오로 타입만 바꿨더니 문제가 되네요. 정보
폼메일 중에 체크박스를 라디오로 타입만 바꿨더니 문제가 되네요.
본문
타입만 바꿨더니 글쓸때 라디오박스지만 클릭하면 세개다 선택이 되고 선택이 풀리지가 않네요
소스찾아서 해봐도 잘 안되네요 ;;
<input type="checkbox" name="ext9_07" value="1개월" <? if($ext9_07 == "1개월" || $ext9_07=='') echo "checked"; ?> /> 1개월
<input type="checkbox" name="ext9_08" value="6개월" <? if($ext9_08 == "6개월") echo "checked"; ?> /> 6개월
<input type="checkbox" name="ext9_09" value="12개월" <? if($ext9_09 == "12개월") echo "checked"; ?> /> 12개월
이게 원본 소스인데요. 체크박스를 라디오 박스로
<input type="radio" name="ext9_07" value="1개월" <? if($ext9_07 == "1개월") echo "checked"; ?> /> 1개월
<input type="radio" name="ext9_08" value="6개월" <? if($ext9_08 == "6개월") echo "checked"; ?> /> 6개월
<input type="radio" name="ext9_09" value="12개월" <? if($ext9_09 == "12개월" || $ext9_09=='') echo "checked"; ?> /> 12개월
이렇게 바꿨꺼든요.
페이지 상단에 폼 설정인가? 그거는
$ex9_filed = explode("|",$write[wr_9]);
$ext9_00 = $ex9_filed[0]; //전화
$ext9_01 = $ex9_filed[1];
$ext9_02 = $ex9_filed[2];
$ext9_03 = $ex9_filed[3];
$ext9_04 = $ex9_filed[4];
$ext9_05 = $ex9_filed[5];
$ext9_06 = $ex9_filed[6]; //메일
$ext9_07 = $ex9_filed[7]; //답변방법
$ext9_08 = $ex9_filed[8];
$ext9_09 = $ex9_filed[9];
$ex10_filed = explode("|",$write[wr_10]); //주소부분
$ext10_00 = $ex10_filed[0];
$ext10_01 = $ex10_filed[1];
$ext10_02 = $ex10_filed[2];
$ext10_03 = $ex10_filed[3];
/*
wr_1 회사명
wr_2 샘플사이트
wr_3 샘플사이트
wr_4 샘플사이트
wr_5 샘플사이트
wr_6 페이지
wr_7 홈페이지
wr_8 상태
*/
이렇게 되어 있구요.
아시는분들 좀 부탁드리겠습니다. ㅠ_ㅠ
소스찾아서 해봐도 잘 안되네요 ;;
<input type="checkbox" name="ext9_07" value="1개월" <? if($ext9_07 == "1개월" || $ext9_07=='') echo "checked"; ?> /> 1개월
<input type="checkbox" name="ext9_08" value="6개월" <? if($ext9_08 == "6개월") echo "checked"; ?> /> 6개월
<input type="checkbox" name="ext9_09" value="12개월" <? if($ext9_09 == "12개월") echo "checked"; ?> /> 12개월
이게 원본 소스인데요. 체크박스를 라디오 박스로
<input type="radio" name="ext9_07" value="1개월" <? if($ext9_07 == "1개월") echo "checked"; ?> /> 1개월
<input type="radio" name="ext9_08" value="6개월" <? if($ext9_08 == "6개월") echo "checked"; ?> /> 6개월
<input type="radio" name="ext9_09" value="12개월" <? if($ext9_09 == "12개월" || $ext9_09=='') echo "checked"; ?> /> 12개월
이렇게 바꿨꺼든요.
페이지 상단에 폼 설정인가? 그거는
$ex9_filed = explode("|",$write[wr_9]);
$ext9_00 = $ex9_filed[0]; //전화
$ext9_01 = $ex9_filed[1];
$ext9_02 = $ex9_filed[2];
$ext9_03 = $ex9_filed[3];
$ext9_04 = $ex9_filed[4];
$ext9_05 = $ex9_filed[5];
$ext9_06 = $ex9_filed[6]; //메일
$ext9_07 = $ex9_filed[7]; //답변방법
$ext9_08 = $ex9_filed[8];
$ext9_09 = $ex9_filed[9];
$ex10_filed = explode("|",$write[wr_10]); //주소부분
$ext10_00 = $ex10_filed[0];
$ext10_01 = $ex10_filed[1];
$ext10_02 = $ex10_filed[2];
$ext10_03 = $ex10_filed[3];
/*
wr_1 회사명
wr_2 샘플사이트
wr_3 샘플사이트
wr_4 샘플사이트
wr_5 샘플사이트
wr_6 페이지
wr_7 홈페이지
wr_8 상태
*/
이렇게 되어 있구요.
아시는분들 좀 부탁드리겠습니다. ㅠ_ㅠ
댓글 전체
name="ext9_07" 네임 값을 동일하게 주세요.
헉 그걸 못봤네요 ^^;;
님 좀 짱인듯 ^^)/
무지하게 감사합니다. ^^
님 좀 짱인듯 ^^)/
무지하게 감사합니다. ^^