Unwanted new line returned after AJAX request

后端 未结 4 539
执念已碎
执念已碎 2021-01-13 05:23

I\'m using an ajax request to send comments to DB. Succesful response is marked by

1. OK

The problem actually is that the response from the

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-13 06:04

    I fixed by these

    1. Make sure there is nothing, preceeding the opening
    2. Make sure there are no trailing characters / lines after the closing ?>
    3. Check to see if a ?> tag exists somewhere in the lines of code (follow flow from your __construct and where you invoke stuff)

提交回复
热议问题