Re: Dynamic Email Address in an HTML table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx";>email@xxxxxxxxxxx</a>

right? Now if $row['email'] is equal to "email@xxxxxxxxxxx" 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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux