Jump to content

Display name as an email link


gk20

Recommended Posts

I'm outputting a user's name and contact email address
eg. Username: adminiistrator
Email: [email protected]

Instead I would prefer to just have the user's username as a link to their email?
How is this possible?
Or perhaps as a link so that a popup will appear with users email and phone number??

I tried the link something like this -
<a href="mailto:$email">$user</a>
where $email is the result of a query - $email = $row['Email'] and
$user is similar - $user = $row['username'];

Ideally id like to see both options above to see which one looks best, but if i could get help
with either that would be great?
Thanks!!!!!
Link to comment
https://forums.phpfreaks.com/topic/5092-display-name-as-an-email-link/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.