Re: Dynamic Email Address in an HTML table
| From: | John W. Holmes | Date: | Mon, 10 May 2004 00:18:35 +0000 |
| Subject: | Re: Dynamic Email Address in an HTML table | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34337@lists.php.net to get a copy of this message | ||
PHPDiscuss - PHP Newsgroups and mailing lists wrote:
How can I create the email address in the field as a hyperlink to the email address?How would you create the link normally? <a href="mailto:email@address.com">email@address.com</a> right? Now if $row['email'] is equal to "email@address.com" or whatever you pull from the database, how would you do it? The same way... echo "<a href=\"mailto:{$row['email']}\">{$row['email']}</a>"; or <a href="mailto<?=$row['email']?>"><?=$row['email']?></a> or echo '<a href="mailto:'.$row['email'].'">'.$row['email'].'</a>'; or ... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals - www.phparch.com