worldcomingtoanend Posted January 14, 2009 Share Posted January 14, 2009 ..whats the equivalent of an html email (<a href="mailto:ewewe@yahoo.com"> link in php. I have a complete php web page and I need to include email links. Pliz help. I hv tried googling but I'm about to go nuts. thanks hey!!! Quote Link to comment https://forums.phpfreaks.com/topic/140857-how-do-i-create-an-email-link-in-php/ Share on other sites More sharing options...
premiso Posted January 14, 2009 Share Posted January 14, 2009 It is the same. PHP does pre processing and then generally displays html to the page. Which that would be the correct way to display the email in html on the page. Quote Link to comment https://forums.phpfreaks.com/topic/140857-how-do-i-create-an-email-link-in-php/#findComment-737254 Share on other sites More sharing options...
MatthewJ Posted January 14, 2009 Share Posted January 14, 2009 You would just echo out that link... echo '<a href="mailto:email@domain.com">Email me</a>'; Either that, or you're asking the wrong question Quote Link to comment https://forums.phpfreaks.com/topic/140857-how-do-i-create-an-email-link-in-php/#findComment-737255 Share on other sites More sharing options...
worldcomingtoanend Posted January 14, 2009 Author Share Posted January 14, 2009 You would just echo out that link... echo '<a href="mailto:email@domain.com">Email me</a>'; Either that, or you're asking the wrong question --------------------------------- using the above can I echo like this? : echo '<a href="mailto:<?php $email;?>">Email me</a>'; Quote Link to comment https://forums.phpfreaks.com/topic/140857-how-do-i-create-an-email-link-in-php/#findComment-737263 Share on other sites More sharing options...
trq Posted January 14, 2009 Share Posted January 14, 2009 Yes. Why not try it and see? Quote Link to comment https://forums.phpfreaks.com/topic/140857-how-do-i-create-an-email-link-in-php/#findComment-737266 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.