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>";
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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to