How to add a data from textarea in database without refresh page : <p>I was developing a system of Login and Register with PHP, HTML, MySql etc, so, i have a problem with my chat!</p>

<p>I want to get data from textarea, and if the button was clicked, empty the textarea, and send the text to database without refresh a page! I have a system that refresh the data from the database and refresh the div "chat" in index.php !</p>

<p>Help me!</p>
