Hello,
I have a form with a multiple container it shows 60 rows perfectly.
on submit form is executed a custom code with this sample code:
Problem 1: I would like show the send progress like this (echo "mail sent to". $to) but only is showing at end of custom code. Is posible to show every row during the process?
Problem 2: I would like to update every row in the database for controlling all mails sending. But if i put update sentence inside of "foreach" i believe that will happend the same.
Can you help me??
Thomas
I have a form with a multiple container it shows 60 rows perfectly.
on submit form is executed a custom code with this sample code:
<?php
$results = array();
foreach ( $form->data['coles'] as $v ) {
$to = $v[co_m_director];
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: ideagrup@yahoo.es" . "\r\n";
mail($to,$subject,$txt,$headers);
}
?>
The code runs perfectly and sends mails perfectly, but I have 2 problems:
Problem 1: I would like show the send progress like this (echo "mail sent to". $to) but only is showing at end of custom code. Is posible to show every row during the process?
Problem 2: I would like to update every row in the database for controlling all mails sending. But if i put update sentence inside of "foreach" i believe that will happend the same.
Can you help me??
Thomas