Page 1 of 1

Getting email from PHP to show up in HTML

Posted: Fri Nov 07, 2008 6:58 pm
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 />

Re: Getting email from PHP to show up in HTML

Posted: Sun Nov 09, 2008 12:28 pm
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.