[問題] 發生forbidden的問題!?
以下是html碼的部份
<select
onchange="get_area_list(this.options[this.options.selectedIndex].value,'2')"
size="1" name="city" id="city">
<option...
.
.
</select>
<span id="_new_select"></span>
以下是javascript部分
function get_area_list(x,y){
var zipUrl="get_select_list.php";
var zipPar = "i=" + x + "&j=" + y;
var prototype;
var prototype = new Ajax.Request (zipUrl,
{method: 'get', parameters: zipPar, onComplete: function(res){
_new_select.innerHTML = res.responseText;
}
});
}
說明:
基本上這是一個選了縣市後會出現鄉鎮市區的動態選單
get_select_list.php
的內容會產生鄉鎮市區的選項
但是在某個機率下會產生以下的錯誤訊息
Forbidden
You don't have permission to access /get_select_list.php on this server
請問這是在什麼情況下會出現的錯誤
應該怎麼修正比較好呢?
感謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.120.164.146
→
01/22 05:30, , 1F
01/22 05:30, 1F
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章