How do i create an email link in PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tinoda
Forum Commoner
Posts: 33
Joined: Mon Dec 29, 2008 3:32 am

How do i create an email link in PHP?

Post 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>
User avatar
andym01480
Forum Contributor
Posts: 390
Joined: Wed Apr 19, 2006 5:01 pm

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

Post by andym01480 »

Code: Select all

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