function reg(email, pass){
$.ajax({
url: "uman.php",
type: "post",
data:{email: email, password: pass},
success: function(reply){
if (reply == "success"){
$("#signinup").hide();
$("#donesucc").css("display","block");
console.log(reply);
}
if (reply == "duplicate"){
$("#signinup").hide();
$("#donedupe").css("display","block");
}
}
})
}
Anything I should change? The PHP just echos the status of the query and Javascript takes that value and outputs the results through HTML.