[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>
<?php foreach ($users as $member): ?>
<tr>
<td><?php echo $member->display_name ?></td>
<td><?php echo $member->first_name ?></td>
<td><?php echo $member->last_name ?></td>
<td><?php echo mailto($member->email) ?></td>
</tr>
<?php endforeach ?>
</tbody>
</table>
<?php echo form_button('sendemail','send message to all'); ?>
<?php echo form_close() ?>
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:
<?php
echo form_open();
echo form_textarea();
echo form_button('sendemail','send message to all');
echo form_close()
?>
Can somebody pls help me??
sorry for my bad english...