To send data without your page refreshing, refresh or something. You need to use javascript with a serialize.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script><scripttype="text/javascript">
$(document).ready(function(){
$('#ajax').submit(function(){
var dados = $( this ).serialize();
$.ajax({
type: "POST",
url: "nomedoarquivo.php",
data: dados,
success: function( data )
{
alert( data );
}
});
return false;
});
});
</script>
But for this you will have to change your form tag, in case if it is so
<form action="nomedoarquivo.php" method="POST">
You have to leave this, as I will show below, after all in JavaScript will already be indicating the name of the file and the sending method that will be POST
<form action="" method="" id="ajax">
Remembering that in this case you should have a submit to work sending the data correctly, I'll give an example below a submit
<input type="submit" value="Salvar informações">