Welcome Guest, Not a member yet? Register   Sign In
safe_mailto issue Help Please....
#1

[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.




Theme © iAndrew 2016 - Forum software by © MyBB