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

· 15년 전 · 3899 · 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,409
15년 전 조회 5,493
15년 전 조회 8,004
15년 전 조회 5,057
15년 전 조회 2,883
15년 전 조회 4,189
15년 전 조회 1.7만
15년 전 조회 4,510
15년 전 조회 4,059
15년 전 조회 3,900
15년 전 조회 2,967
15년 전 조회 3,742
15년 전 조회 4,687
15년 전 조회 3,933
15년 전 조회 5,398
15년 전 조회 4,209
15년 전 조회 9,696
15년 전 조회 3,051
15년 전 조회 2.6만
15년 전 조회 6,019
🐛 버그신고