[quote author=craig link=board=7;threadid=407;start=0#msg2506 date=1045673711]
i've had a quick look at some basic PHP tutorials and the disadvantage of using PHP here is that the recipient's email address is embedded in the HTML page.
is there a way around this (to avoid spiderbots)?
[/quote]
Just because its in the php code doesn't mean its in the html. php is server-side so anything inside <?php ?> is not sent to the client. For example, replace your email address in the below code, run it, then view the source. The email address is never received by the browser and will never be found by spiders.
Code:
<?php
$sendAddr = 'your@emailaddress.com';
$subject = 'Mailed from PHP script';
$message = 'This is a test message.';
$fromAddr = 'nobody@yourdomain.com';
mail($sendAddr, $subject, $message, "From: $fromAddr");
?>
<!-- Notice no code is sent above this line -->
<html>
<head>
<title>Test Email</title>
</head>
<body>
Email sent
</body>
</html>