+ 1

i have a js and php problem

i have this jquery and ajax code that sends data to a php backend which will then be added to a db and rend the response to the ajax callback but the rescponse always come with a html comment tag "<!-- --> success".... how do i go about it please??# here is the link to the code: https://www.sololearn.com/compiler-playground/wEXyb7Z8SDyE

7th Sep 2024, 2:31 AM
Okoro Ikechukwu Stephen
Okoro Ikechukwu Stephen - avatar
1 ответ
0
Even a single space, new line, or other characters outside of the <?php ?> tags can cause such issues. Fixed your code. If it has more issues then let me know, there're more ways to fixed this further.
27th Sep 2024, 2:51 AM
`ᴴᵗᵗየ
`ᴴᵗᵗየ - avatar