Skip to content

Instantly share code, notes, and snippets.

@andrewlimaza
andrewlimaza / honeypot-example.php
Last active November 16, 2024 11:47
Simple honeypot for an HTML form using PHP
<?php
//check if form was sent
if($_POST){
$to = '[email protected]';
$subject = 'Testing HoneyPot';
$header = "From: $name <$name>";
$name = $_POST['name'];