Fijate:
Código PHP:
header("Location: $redir?error_mail= 0");
exit;
Si tu array es $error_mail .. y esa "varaible" es y será el indice de tu array para mostrar el error en consecuencia .. debe ser:
Código PHP:
header("Location: $redir?error= 0");
exit;
Para hacer:
Código PHP:
include ("mensajes_error.php");
if (isset($_GET['error'])){
$error=$_GET['error'];
echo $error_mail[$error];
}
Siendo $error_mail un array definida como pusistes (con o sin $error_mail=array(); )
Un saludo,