I try to do a redirection with header
like this:
header('location:perfil.php?CodUsua=<?php echo $_SESSION['CodUsua']; ?>');
I receive the following error:
Parse error: syntax error, unexpected 'CodUsua' (T_STRING), expecting ',' or ')'
What would be the correct syntax?