Pb formulaire php

Résolu
flibouk -  
gigaga Messages postés 2347 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,

voila j'ai fait un formulaire qui marche très bien.
mais j'ai un petit truc a modifier et n'étant pas fort en php ca me pose un problème:

j'aimerai avoir 2 adresses de destinations comment faire?

<?php
$TO = "blabla@orange.fr";

$h = "From: " . $TO;

$message = "";

while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}

mail($TO, $subject, $message, $h);

Header("Location: https://www.geringhoff.com/");

?>

3 réponses

gigaga Messages postés 2347 Date d'inscription   Statut Membre Dernière intervention   301
 
$TO = "blabla@orange.fr;2emeAdresse@mail.com";

?
0
flibouk
 
ok parfait merci c'était tout bette
0
gigaga Messages postés 2347 Date d'inscription   Statut Membre Dernière intervention   301
 
Tu peux mettre en "résolu"? Merci
0