Quote Originariamente inviata da marino51 Visualizza il messaggio
sostituisci
codice:
data: "search=" + str + "&string=" + str2,
con
codice:
   data:
   {
    search :  str,
    string : str2
  },
non era qua il problema ma ho risolto cos� :
codice:
    take_user_email ("username", stringa, function(app){
        if (app=="true") {
            alert ("ERRORE!!!");
            document.getElementById (idimg).src="../IMMAGINI/no.png";
        } else {
            document.getElementById (idimg).src="../IMMAGINI/ok.jpg";
        }
    });
codice:
function take_user_email (str, str2, output) {
    $.ajax({
        type: "POST",
        url: "../PHP/filephpdb.php",
        data: "search=" + str + "&string=" + str2,
        dataType: "html",
        success: function (res) {
            output (res);
        },
        error: function () {
            alert ("ERRORE!!!");
        }
    });
}