$.ajax({
type:"POST",
url:"register.php",
data:{
'username' : username,
'password' : password,
'repeatpassword' : repeatpassword,
'fullname' : fullname,
'submit':'submit'
},
dataType:"json",
cache:false,
success:function(data)
{ $("#notices").append($("Result : "+data));
//$('div#notices').html($("Something should have been here"));
//$('#notices').html($("You have been registered"));
}
});