CodeIgniter Forums
safe_mailto issue Help Please.... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: safe_mailto issue Help Please.... (/showthread.php?tid=43852)



safe_mailto issue Help Please.... - El Forum - 07-25-2011

[eluser]debow[/eluser]
I'm trying to create list of email address that you can click to email.

The following works.
Code:
<tr>
  <th>Name</th>
  <th>Email</th>
</tr>
&lt;?php foreach ($members->result() as $m) { ?&gt;
<tr>
  <th>&lt;?php echo $m->name;?&gt;</th>
  <th>&lt;?php echo $m->email;?&gt;</th>
</tr>
&lt;?php }?&gt;

But this does not.
Code:
<tr>
  <th>Name</th>
  <th>Email</th>
</tr>
&lt;?php foreach ($members->result() as $m) { ?&gt;
<tr>
  <th>&lt;?php echo $m->name;?&gt;</th>
  <th>&lt;?php echo safe_mailto($m->email,"$m->email");?&gt;</th>
</tr>
&lt;?php }?&gt;

The code block with the safe_mailto added will take me to a new page with only the first email displayed. It doesn't show in the view I created with the table listings.