Redirection après formulaire
Bonjour.
Alors dans mon formulaire, j'ai :
Code:
1 2 3 4 5 6 7 8
| //page de sortie
$insertGoTo = "http://www.strix.fr/sondmerci.php?lang=$lang"; //ligne qui me pose problème
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
} |
Je n'arrive pas à faire en sorte que la page soit sondmerci.php?lang=fr
Si je laisse comme tel, j'ai sondmerci.php?lang=fr&
Vous avez une idée d'où peut venir le & ?
Merci d'avance