-1
How to send the form behind without redirecting to another page just clear the fields and display an alert or message that was sent, without refreshing the page, because I did so :
echo ("<SCRIPT LANGUAGE='JavaScript'>window.location.href='index.php';window.alert('Formulário enviado com sucesso!');</SCRIPT>");
But it still has a delay that shows the application running and then shows the alert and finally loads the page.
Study about AJAX. Right here on the site there is many questions about it.
– Woss
You can study about the
fetch
javascript also.– Woss