admin管理员组

文章数量:1331667

So like this post's title says, I'm sending a POST request via jQuery's AJAX method. However, the PHP code it runs does indeed run. Everything in the PHP code works as it should. The only issue is that it's not returning a success in order to run the success function.

Client-Side JS Code:

<script>

            function mandUpdate(mand, action, element) {
              $.ajax({
                type: "POST",
                url: "update/mands.php",
                data: {id: window.location.href.split("?id=").slice(1).join("?id="), type: "NA", mand: mand, action: action, value: document.getElementById(mand + "Text").value},
                success: function() {
                  document.getElementById(element).innerHTML = "

本文标签: javascriptjQueryAJAX POST Request is giving a 500 Internal Server ErrorStack Overflow