Bonjour,
Je voudrais tester une variable; Si la variable est vraie alors j'ouvre une nouvelle page sinon ca m'en ouvre une autre.
ce code est il bon?
if ($a = $vrai)
{
header('Location:page_vraie.php')
}
else {
header('Location:page_fausse.php')
}
avec ceci j'obtiens le message d'erreur suivant:
cannot modify header information - headers already sent by (output ...)
merci