My problem is this. I have this ajax call:

```
   $.ajax({
                url: "./changepassword_ajax.php",
                type: "POST",
                data: formData,
                processData: false,
                contentType: false,
                success: function (res) {

                }
        });

```

The var formData has info (that's not the problem). 
In "changepassword\_ajax.php" I have this code:

```
$obj = new All();
$clave  = $obj->CNF_get('admin_clave');

if($_POST('oldpassword') == $clave){
    $obj->CNF_set('admin_clave', $_POST('newpassword'));
    echo "OK";
}else{

    echo "ERROR";
}

```

After doing this:

```
if($_POST('oldpassword') == $clave){

```

The ajax call returns. So it's not reaching the rest of the code.

Thanks for your help.