Dear user,
does any one know how to display multiple records in HTML file using PHP ?
Here we go the input fields generating names title_
<label for=”title_<?php echo $cnt1; ?>”>Title:</label></td>
<td><input type=”text” name=”title
</td>
So it’s title_1, title_2 … deppends how many I wnat to display
But when I am trying to send using this code
function Trigger_SendEmail(&$tNG) {
$emailObj = new tNG_Email($tNG);
$emailObj->setFrom(“
$emailObj->setTo(“
$emailObj->setCC(“”);
$emailObj->setBCC(“”);
$emailObj->setSubject(“Test Newsletter”);
//FromFile method
$emailObj->setContentFile(“newsletter.htm”);
$emailObj->setEncoding(“ISO-8859-1”);
$emailObj->setFormat(“HTML/Text”);
$emailObj->setImportance(“Normal”);
return $emailObj->Execute();
The newsletter.htm file does not repsond for the {title_1}, {title_2}….
only for {title} and it’s sending 4 emails instead of one if I have 4 fields…
Thanks