# PHP forms and spam

**URL:** <https://forum.kirupa.com/t/php-forms-and-spam/273304>\
**Category:** programming\
**Created:** [October 14, 2008, 6:16am UTC](https://forum.kirupa.com/t/php-forms-and-spam/273304 "2008-10-14T06:16:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![carbone6](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@carbone6](https://forum.kirupa.com/u/carbone6)\
**Post date:** [October 14, 2008, 6:16am UTC](https://forum.kirupa.com/t/php-forms-and-spam/273304/1 "2008-10-14T06:16:18Z")

</div>

I’ve been told the only way to prevent spam scripts from taking email addresses from PHP forms i create is to make one of those randomly generated images with numbers and letters for users to enter before sending the email.

Is there another way to block the scripts from getting to the email address in PHP forms?

Thanks.
