page refresh after sending the form data php code example
Example: php do not refresh page after submit post
// add this code to javascript
<script>
if ( window.history.replaceState ) {
window.history.replaceState( null, null, window.location.href );
}
</script>