Welcome Guest, Not a member yet? Register   Sign In
send message to all email adresses of a table in a view
#1

[eluser]Unknown[/eluser]
Hello,

i hope somebody can help me:

i have a table in my view:
Code:
<?php echo form_open('sektionssprecher/sendemail')?>
<table >
  <thead>
   <tr>
    
    <th>Benutzername</th>
    <th>Vorname</th>
    <th>Nachname</th>
    <th width="200"> Email</th>
   </tr>
  </thead>
  
  <tbody>
  
   &lt;?php foreach ($users as $member): ?&gt;
    <tr>
    
     <td>&lt;?php echo $member->display_name ?&gt;</td>
     <td>&lt;?php echo $member->first_name ?&gt;</td>
     <td>&lt;?php echo $member->last_name ?&gt;</td>
     <td>&lt;?php echo mailto($member->email) ?&gt;</td>
    
    
    </tr>
   &lt;?php endforeach ?&gt;
  </tbody>
</table>
&lt;?php echo form_button('sendemail','send message to all'); ?&gt;
&lt;?php echo form_close() ?&gt;

Now i want to read out all the emailadresses of this table and send it to the controller "sektionssprecher":

with "public function sendemail()" i want to send the data to a new view, where i can write my text and send it via button to all the emailadresses from this table:
Code:
&lt;?php


echo form_open();
echo form_textarea();
echo form_button('sendemail','send message to all');
echo form_close()

?&gt;

Can somebody pls help me??

sorry for my bad english...


Messages In This Thread
send message to all email adresses of a table in a view - by El Forum - 05-15-2013, 02:25 AM
send message to all email adresses of a table in a view - by El Forum - 05-15-2013, 05:04 AM
send message to all email adresses of a table in a view - by El Forum - 05-15-2013, 10:22 AM
send message to all email adresses of a table in a view - by El Forum - 05-16-2013, 01:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB