Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/370.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 未定义索引:使用get对codeigniter执行操作_Javascript_Php_Codeigniter - Fatal编程技术网

Javascript 未定义索引:使用get对codeigniter执行操作

Javascript 未定义索引:使用get对codeigniter执行操作,javascript,php,codeigniter,Javascript,Php,Codeigniter,我正在我的网站上安装javascript聊天。 似乎我在使用Codeigniter的网站上看到了“Undefined index:action”,但它在使用标准php的普通网站上运行良好。 错误来自以下方面: if($_GET['action'] == "chatheartbeat") { chatHeartbeat(); } if($_GET['action'] == "sendchat") { sendChat(); } if($_GET['action'] == "closechat"

我正在我的网站上安装javascript聊天。 似乎我在使用Codeigniter的网站上看到了“Undefined index:action”,但它在使用标准php的普通网站上运行良好。 错误来自以下方面:

if($_GET['action'] == "chatheartbeat") { chatHeartbeat(); } 
if($_GET['action'] == "sendchat") { sendChat(); } 
if($_GET['action'] == "closechat") { closeChat(); } 
if($_GET['action'] == "startchatsession") { startChatSession(); }
有什么办法可以让这一切顺利吗? 我一直在尝试我能做的一切,甚至谷歌也没有成功


我敢肯定,
$\u GET
的原因是因为它是一个完整的JavaScript聊天。

引发错误的原因是,不知何故,该段代码没有获得该操作值,而网站没有引发该错误的原因可能是因为网站使用的php.ini关闭了错误。如果是这样,那么错误仍然存在,只是没有显示出来。我希望这些信息有助于您找到错误,而不是因为我不熟悉Codeigniter,所以如果它与Codeigniter有关,我就不知道了