Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/87.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
分号,CRUD sql关键字为POST jQuery提供403错误_Jquery_Post_Http Status Code 403 - Fatal编程技术网

分号,CRUD sql关键字为POST jQuery提供403错误

分号,CRUD sql关键字为POST jQuery提供403错误,jquery,post,http-status-code-403,Jquery,Post,Http Status Code 403,函数保存文本(str){ $.post('test1ajax.php',{test1:str}, 功能(数据){ console.log('结果:'+数据); } ); }请您发布更多的代码,如果我这样尝试,我没有问题,状态为200: str = ";inserted"; saveText(str); function saveText(str) { $.post('test.php', {test1: str}, function(data) {

函数保存文本(str){
$.post('test1ajax.php',{test1:str},
功能(数据){
console.log('结果:'+数据);
}
); 

}
请您发布更多的代码,如果我这样尝试,我没有问题,状态为200:

str = ";inserted";
saveText(str);
function saveText(str) {
    $.post('test.php', {test1: str},
          function(data) {
            console.log(data);
            }
    );
}
你从哪里得到你的str


我只是在控制台中键入saveText(“示例;插入”)。我确信它与主机的配置有关。我的问题似乎与类似,但我现在不在工作,无法测试。顺便说一句,我正在调用的php只包含我明天可以发布的类似于你的截图。顺便说一句,当它不返回403时,它返回200,其中包含var_dump($_POST)的预期结果