我試圖讓我在我的網址使用GET
傳遞的參數中的URL獲得參數,但我有一個錯誤:不能使用笨3
An Error Was Encountered
The URI you submitted has disallowed characters.
我的網址是這樣的:
http://localhost/teradasys/index.php/users/user/user_info&user_id=1
而且在我的控制器:
public function user_info() {
$user_id = $this->input->get('user_id');
print_r($user_id);
}
我該如何解決這個問題?
因此您需要通過get?1?我的問題如何以及何時需要它 –
嘗試'http://localhost/teradasys/index.php/users/user/user_info?user_id = 1'。 – Tpojka
謝謝。我忘記在參數前加上'?'。對不起,我的簡單錯誤。 – Jerielle