Fix Rediret to current post

This commit is contained in:
Jesús
2019-11-19 10:56:04 -05:00
parent a6be1e73b8
commit 299e3e6c7c
2 changed files with 8 additions and 5 deletions

View File

@@ -23,8 +23,8 @@ if(empty($_POST['name']) ||
!filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)
)
{
// header( "Location: ../{$return_url}"); # devel
header( "Location: {$return_url}"); # prod
// Rediret to current post
header( "Location: {$return_url}");
} else {
$DATE_FORMAT = "Y-m-d H:i";
@@ -74,8 +74,7 @@ EOT;
mail($to,$email_subject,$email_body,$headers);
// Rediret to current post
// header("Refresh: 10; URL=../{$return_url}"); # devel
header("Refresh: 10; URL={$return_url}"); # prod
header("Refresh: 10; URL={$return_url}");
printf('Hurra! %s su comentario se envió correctamente,
volviendo a la web en 10 segundos...', $name);
}