I have PHP web page where I need to insert some information to my database. When insert is done, it refresh the same page. But I\'ve been told that this process is not practical
Add preventDefault to your javascript function
Function(e){ e.preventDefault() ... }