Page 1 of 1

How do i create an email link in PHP?

Posted: Wed Jan 14, 2009 2:46 pm
by tinoda
..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!!!

is this permissible : <a href="mailto:<?php $email; ?>">email</a>

Re: How do i create an email link in PHP?

Posted: Wed Jan 14, 2009 3:50 pm
by andym01480

Code: Select all

<a href="mailto:<?php echo $email; ?>">email</a>