4
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by Rhyan
0

I would not suggest showing E-Mail addresses at all ever on a website as these can be picked up by less than wholesome people :)

But if you really want to do this, echo an add the a mailto to the code around the email address.

0

I would not suggest showing E-Mail addresses at all ever on a website as these can be picked up by less than wholesome people :)

But if you really want to do this, echo an add the a mailto to the code around the email address.

To create an email link, you use the protocol, mailto:

eg:

<a href="mailto:user@example.com">user@example.com</a>

http://www.w3.org/TR/WD-html40-970708/htmlweb.html

You could also add a subject, see link.

0

Well, here you should do some coding before printing the contents:...

//this is where you need to intervene

if ($arr_getf = mysql_fetch_array($sth_getf)) {
 
    print '....'

instead, do it like this

$result = mysql_fetch_assoc($sth_getf);
if(isset($result) && if_key_exists('tb_ci_email', $result))
  {
  $newemail = '<a href="mailto:'.$result['tb_ci_email'].'">'.$result['tb_ci_email'].'</a>';
  $result['tb_ci_email'] =$newemail;
  reset($result);
  }
if($result)
  {
   print( '
 
     <td colspan="4" align="left" valign="top">
 
       <table width="100%" border="0" cellpadding="1" cellspacing="1">
  ';
 
          do {
               print '
               <tr>
	      <td align="left" valign="top" class="text-11">	.....');
  }

Hope it works for you. Once you have it set, please tell us the result.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.