<html> <head> <title> CECI EST DU HTML </title> </head> ...
<?php //Exemple balise PHP Echo "Merci de les utiliser à l'avenir !"; ?>
<?php $msg = "Code client:\t$code_client\n"; $msg .= "Nom:\t$nom\n"; $msg .= "Prenom:\t$prenom\n"; $msg .= "Fonction:\t$fonction\n"; $msg .= "Societe:\t$societe\n"; $msg .= "Adresse:\t$adresse\n"; $msg .= "Code postal:\t$code_postal\n"; $msg .= "Ville:\t$ville\n"; $msg .= "Telephone:\t$telephone\n"; $msg .= "Email:\t$email\n\n";
$code_client=$_POST('code_client');
mail($recipient, $subject, $codeclient, $nom, $prenom, $fonction, $societe, $adresse, $codepostal, $ville, $telephone, $email, $mailheaders);
// Récupération de mes variables en POST $code_client=$_POST['code_client']; $nom=$_POST['nom']; //ect ... // construction du MSG $msg = "Code client:\t$code_client\n"; $msg .= "Nom:\t$nom\n"; $msg .= "Prenom:\t$prenom\n"; $msg .= "Fonction:\t$fonction\n"; $msg .= "Societe:\t$societe\n"; $msg .= "Adresse:\t$adresse\n"; $msg .= "Code postal:\t$code_postal\n"; $msg .= "Ville:\t$ville\n"; $msg .= "Telephone:\t$telephone\n"; $msg .= "Email:\t$email\n\n"; // Puis l'envoie du message mail($recipient, $subject, $msg, $mailheaders);
$codeclient = $_POST['codeclient'];
<?php $code_client = $_POST['code_client']; $nom = $_POST['nom']; $prenom = $_POST['prenom']; $fonction = $_POST['fonction']; $societe = $_POST['societe']; $adresse = $_POST['adresse']; $code_postal = $_POST['code_postal']; $ville = $_POST['ville']; $telephone = $_POST['telephone']; $email = $_POST['email']; $recipient = "test@test.net"; $subject = "Demande d'inscription"; $mailheaders = "From: Formulaire d'inscription <> \n"; $mailheaders .= "Reply-To: $sender_email\n\n"; mail($recipient, $subject, $codeclient, $nom, $prenom, $fonction, $societe, $adresse, $codepostal, $ville, $telephone, $email, $mailheaders); echo "<HTML><HEAD>"; echo "<TITLE>Demande d'inscription enregistrée !</TITLE></HEAD>"; echo "Votre demande d'inscription a été enregistrée, $sender_name "; echo ""; echo "Notre service support traitera votre inscription dans les plus brefs délais. Vous recevrez alors un email de confirmation avec vos identifiants. "; echo "</HTML>"; ?>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question