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 PROTECTED]">[EMAIL PROTECTED]</a>

right? Now if $row['email'] is equal to "[EMAIL PROTECTED]" or whatever you pull from the database, how would you do it? The same way...

echo "<a href=\"mailto:{$row['email']}\">{$row['email']}</a>";
<a href="mailto<?=$row['email']?>"><?=$row['email']?></a>
echo '<a href="mailto:'.$row['email'].'">'.$row['email'].'</a>';

---John Holmes...

Amazon Wishlist:

php|architect: The Magazine for PHP Professionals -

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to