This function runs correctly:

function authentication()
    {
        $('#myForm').ajaxSubmit(
        {
            type:'POST',
            url:'login.php',
            success: function(reponse,status) {  },
            error: function(requete,iderror) {    }
        });
        return false;
     }

But not this one:

function authentication()
    {
        $('#myForm').ajaxSubmit(
        {
            type:'POST',
            url:'myFolder/login.php',
            success: function(reponse,status) {  },
            error: function(requete,iderror) {    }
        });
        return false;
     }

Why ?

Reply via email to