PDA

View Full Version : I need help with contact form



Iorguzzu2
September 19th, 2009, 06:32
How can I change my email address from text into an image? Someone told me that this way it won't be picked up by spam bots and it will reduce spam. :(

Dynash
September 19th, 2009, 07:50
<?php

header("Content-type: image/png");
$Email = "you@php.net";
$Email_Length = (strlen($Email)*8);
$Create = @ImageCreate ($Email_Length, 20);
if(!$Create) { echo "Unable to create your image"; }
else {
$Email_BG = @ImageColorAllocate($Create, 255, 255, 255);
$Email_Text = @ImageColorAllocate($Create, 55, 103, 122);
@imagestring($Create, 3, 5, 2, $Email, $Email_Text);
@imagepng($Create);
}

?>


edit/ Just checked again, a contact form wont release your email if it's PHP. It will be hidden, that's the point of Contact Forms. What you need is a capcha to stop spam bots.

Iorguzzu2
September 20th, 2009, 01:56
Thanks, I already found www.contactmeform.com , so I placed a contact form instead... My email address is not visible anywhere now, so zero spam :)