kevinritt Posted February 15, 2009 Share Posted February 15, 2009 When I pull data from my database, one of the variables is a members email address. I'd like to display it on a web page in a table as a link - is that possible? Here's what shows up in the table <td class="display">'.$email.'</td>. So is there a way to make that an email link so that when the page is displayed all you have to do is click on it to send an email? Link to comment https://forums.phpfreaks.com/topic/145264-can-an-email-link-be-made-from-a-variable/ Share on other sites More sharing options...
genericnumber1 Posted February 15, 2009 Share Posted February 15, 2009 You can just do <td class="display"><a href="mailto:'.$email.'">'.$email.'</a></td> Link to comment https://forums.phpfreaks.com/topic/145264-can-an-email-link-be-made-from-a-variable/#findComment-762587 Share on other sites More sharing options...
kevinritt Posted February 15, 2009 Author Share Posted February 15, 2009 that's awesome - thanks Link to comment https://forums.phpfreaks.com/topic/145264-can-an-email-link-be-made-from-a-variable/#findComment-762595 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.