HTML mailto function with icon class

joreagoFeri

New Member
I'm making a mail icon which could send emails of different contents stored in arrays.the problem is, the contents are isolated using a loop: \[code\]foreach ($table as $data) {echo '<a id="email-content" href="mailto:?body='.$data->content.'"><i class="icon-envelope" ></i></a>';echo "<div class='search-tmp-div' style='display:none;'><pre class='search'>$data->content</pre></div>";}\[/code\]I was wondering if there is anyone I can use the function without the envelope icon printing out a bunch of times. I want it to print only once?
 
Back
Top