I was creating a insert
, and when I sent the data I got an alert message saying that the data had been inserted successfully, but now, the page goes blank and only shows that alert.
What I did to keep it from getting stuck was to redirect again with header
, only this time I do not get the message or the alert.
It's very simple I guess, I put it before and after the header
and it did not work.
if ($mail->send())
{
header("location:controlador.php");
echo '<p class="alert alert-success agileits" role="alert">Captura realizada correctamente!p>';
} else {
echo "Mailer Error: " . $mail->ErrorInfo;
}