[object Object] (404 not found) when attempting to submit via AJAX

后端 未结 5 1343
孤独总比滥情好
孤独总比滥情好 2021-01-04 01:12

I am trying to pass variables via ajax to a PHP script that will run a MySQL query. However, I keep getting the error 404 Not Found with: \"http://myurl/database/%5Bobject%

5条回答
  •  忘掉有多难
    2021-01-04 01:47

    Evan is right, tryy sending your data an an object, jquery will take care of properly URL encoding the values. String concatenations can be problematic in js.

提交回复
热议问题