파코님의 업체 정보 2차 카테고리 utf 에러 수정

· 15년 전 · 3914 · 2
[code]
<td ><? if ($is_category) { ?><form name="fcategory" method="get">
<select name=sca onchange="location='<?=$category_location?>&sca='+this.value;">
<option value=''>:: 분류선택 ::</option><?=$category_option?></select>
<select name=wr_9 onchange="location='<?=$category_location?>&sca='+this.form.sca.value+'&wr_9='+this.value;">
<option value=''>:: 분류선택 ::</option><?=$wr_9s;?></select>
[/code]

원본을 아래와 같이 바꾸시면 됩니다.


[code]
<td ><? if ($is_category) { ?><form name="fcategory" method="get">
<select name=sca onchange="location='<?=$category_location?>&sca='+encodeURI(this.value);">
<option value=''>:: 분류선택 ::</option><?=$category_option?></select>
       <select name=wr_9 onchange="location='<?=$category_location?>&sca='+encodeURI(this.form.sca.value)+'&wr_9='+encodeURI(this.value);">
      <option value=''>:: 분류선택::</option><?=$wr_9s;?></select>
[/code]


카테고리 utf에서 에러나는게 게시물 검색해보고 이리저리 해보고 해서
수정완료하였습니다.

+encodeURI(this.form.sca.value)+ 요 부분을 몰라서 ㅡ_ㅡ; ㅎㅎㅎ
알고보니 간단하네요

|

댓글 2개

[code] 이거는 안되는건가 ㅡ_ㅡ?
여긴 안되는거 같은데요...
댓글을 작성하시려면 로그인이 필요합니다.

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
15년 전 조회 3,423
15년 전 조회 5,507
15년 전 조회 8,019
15년 전 조회 5,068
15년 전 조회 2,901
15년 전 조회 4,207
15년 전 조회 1.7만
15년 전 조회 4,527
15년 전 조회 4,082
15년 전 조회 3,915
15년 전 조회 2,987
15년 전 조회 3,761
15년 전 조회 4,711
15년 전 조회 3,956
15년 전 조회 5,417
15년 전 조회 4,228
15년 전 조회 9,725
15년 전 조회 3,069
15년 전 조회 2.6만
15년 전 조회 6,049