The file works fine when not using AppGini header codes, but when I add them I face a problem! Digging through the code, I found the following:
This PHP file uses a javascript function to check the success of it, using the following code:
Code: Select all
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 200) {
if(xhttp.responseText == "1")
{
//success, implement next code
} else {
//failed
alert("ERROR , couldn't save this") ;
}
}
Thank You