Send mutiple choices checkboxes ?
Hello,
In my form i have multiple checkboxes, visitor has to check at least one checkbox.
Sending email only shows one choice not the other.
Here is sending code
<?php
$MailAttachments = "";
$MailBCC = "";
$MailCC = "";
$MailTo = "";
$MailBodyFormat = "";
$MailBody = "";
$MailImportance = "";
$MailFrom = "".((isset($_POST["nom"]))?$_POST["nom"]:"") ."";
$MailSubject = "Mes centres d’intérêts ";
$_SERVER["QUERY_STRING"] = "";
//Global Variables
$WA_MailObject = WAUE_Definition("","","","","","");
if ($RecipientEmail) {
$WA_MailObject = WAUE_AddRecipient($WA_MailObject,$RecipientEmail);
}
else {
//To Entries
}
//Additional Headers
//Attachment Entries
//BCC Entries
//CC Entries
//Body Format
$WA_MailObject = WAUE_BodyFormat($WA_MailObject,0);
//Set Importance
$WA_MailObject = WAUE_SetImportance($WA_MailObject,"3");
//Start Mail Body
$MailBody = $MailBody . "<html><head></head><body>\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "<p>Nom : ";
$MailBody = $MailBody . ((isset($_POST["nom"]))?$_POST["nom"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Prénom : ";
$MailBody = $MailBody . ((isset($_POST["prenom"]))?$_POST["prenom"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Adresse : ";
$MailBody = $MailBody . ((isset($_POST["adresse"]))?$_POST["adresse"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Code Postal : ";
$MailBody = $MailBody . ((isset($_POST["codepostal"]))?$_POST["codepostal"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Localité : ";
$MailBody = $MailBody . ((isset($_POST["localite"]))?$_POST["localite"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Pays : ";
$MailBody = $MailBody . ((isset($_POST["pays"]))?$_POST["pays"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Email : ";
$MailBody = $MailBody . ((isset($_POST["email"]))?$_POST["email"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Mon niveau PNP : ";
$MailBody = $MailBody . ((isset($_POST["niveau"]))?$_POST["niveau"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Mes intérêts :</p>\r\n";
$MailBody = $MailBody . "<p>";
$MailBody = $MailBody . ((isset($_POST["interet_"]))?$_POST["interet_"]:""); ============> HERE is the fist check box item
$MailBody = $MailBody . "<br />\r\n";
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Comment avez-vous connu Ressources : <br />\r\n";
$MailBody = $MailBody . ((isset($_POST["comment"]))?$_POST["comment"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p> </p>\r\n";
$MailBody = $MailBody . "</body></html>";
//End Mail Body
Thanks helping me.