Is this method sufficient?
<?php
// User pressed "Register"
if (!empty($_POST['name']) && $_POST['email']) {
if (!empty($_POST['antispam']))
exit("bye");
}
?>
<form>
<input type="hidden" name="antispam" value="" />
Accname: <input type="text" name="name" value="" />
Email: <input type="text" name="email" value="" />
......
</form>
In all basic sense of the idea, sure. Only thing I would recommend for your simple implementation is that most spam scanners that you’re trying to block out look for fields titled “username”, “name”, “user”, etc ..
So, isntead of naming your honeypot “antispam” I would name it “username” or something similar that does not conflict with your existing form.