variables and headers
Posted: Sat Aug 06, 2011 3:43 am
Hi, Can anyone help me here - I can't pass the variable in my header redirect.
If I echo $MM_redirectLoginSuccess it echos fine : mipagina.php?id=106
However in the url it comes up withouth the variable: mipagina.php?id=
thanks in advanced
If I echo $MM_redirectLoginSuccess it echos fine : mipagina.php?id=106
However in the url it comes up withouth the variable: mipagina.php?id=
thanks in advanced
Code: Select all
$ent = $_GET['id'];
$MM_redirectLoginSuccess = "mipagina.php?id=$ent";
header("Location: " . $MM_redirectLoginSuccess );