Getting email from PHP to show up in HTML

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
rethreth
Forum Newbie
Posts: 1
Joined: Fri Nov 07, 2008 6:54 pm

Getting email from PHP to show up in HTML

Post by rethreth »

Hi,

I am trying to get PHP to show up in HTML. Does anyone know how to do this?

I am trying to have it show up at the mailto:youremail@gmail.com




--PHP-alt-<?php echo $random_hash; ?>
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
<?php
$mail_body = $_REQUEST['email'] ;
mail($mail_body); //mail command :)

?>
<p><a href="mailto:youremail@gmail.com" title="mailto:youremail@gmail.com blocked::mailto:youremail@gmail.com">youremail@gmail.com</a> wants you to check out:<br />
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: Getting email from PHP to show up in HTML

Post by JAB Creations »

There is absolutely no reason for putting a person's email address in client output ((X)HTML). Even if you require registration I still wouldn't do it. Contact forms are the only way to go until the internet is absent of malicious scrappers.
Post Reply