<script type="text/javascript">
$(function() {
$("#continue").click(function () {
$.ajax({
type: "POST",
url: "dbc.php?check=First",
data: {full_name : $('#full_name').val(),
usr_email : $('#usr_email').val()},
success: function(msg){
if(msg==1){
$("#First_1").hide();
$("#Next_2").toggle();
}else{
alert(msg);
}
}
});
return false;
});
});
</script>
Here's dbc.php?check=First phpbin.net/x/249121011
if it´s receiving echo 1; from dbc.php?check=First, then hide & toggle, else then alert the output error.
Please check the link for the php, what is wrong here?
Right now i just get an empty alert.