I am using ajax for first time,not able to solve this problem here is the code fr.php
<script type="text/javascript">
function register(){
$.ajax({
type: "POST",
url: "submit_data.php",
data: "username=" + document.getElementById("username").value +
"&email=" + document.getElementById("email").value,
success: function(html){
$("#response").html(html);
}
});
}
</script>
and my problem is its not going inside the function also on button click
submit_data.phpcode? What's the problem - are you getting an error , the database doesn't get updated?print_rthe post data in your php file and report the output