$('#SaveProfile').bind("click", function(){
var pass_entered = $('#pass_entered').val();;
var access = false;
//check for the password entered if correct
$.ajax({
type:'GET',
url:'../process/passProtectionCheck.php',
dataType:'json',
data:{password:'pass_entered'},
success:function(e){
access = $(e).val();
if(access != true){
//if password is wrong notify user!!
alert('Password Entered is Incorrect Data cannot be Save');
}else{
//if password is correct save data
alert('Password Entered Matchec!!');
}
}
});
});
Can anyone help me how accept return values from $_GET with jquery ajax
my php file return a boolean variable access ...