How do you make an echoed email linkable

Posted on 2011-04-20
Last Modified: 2012-05-11
I would like to make this echoed email as a link so anyone can click it and email that person.
echo "<td bgcolor='#FFFFFF' style='color: #000' align='center'> Provider's E-Mail: ".$result['email']."<br /></td>";

Open in new window

Question by:genesisvh
    LVL 8

    Accepted Solution

    	echo "<td bgcolor='#FFFFFF' style='color: #000' align='center'> Provider's E-Mail: <a href="mailto:".$result['email']."">".$result['email']."</a><br /></td>";

    Open in new window


    Author Comment

    I think there is a syntax error in this Rik.

    Author Comment

    Found the error
    echo "<td bgcolor='#FFFFFF' style='color: #000' align='center'> Provider's E-Mail: <a href= mailto:".$result['email'].">".$result['email']."</a><br /></td>";

    Open in new window


    Author Closing Comment


    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to count occurrences of each item in an array.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now