I was thinking of how I (or we) could build a fully functional PHP form that could do two things:

Be randomly generated

Keep original formatting when parsing to e-mail

For anyone who's not familiar with the honeypot method I will briefly explain it. The honeypot method uses a visually invisible field (display: none) that should be kept empty when posted. Because bots will only inspect the source code it will be very likely that a bot will automatically fill in this field and thus be blocked by a if / else check when the form is posted.

I wrote a concept that explains the algorithm that has to do this. I added a few example arrays, just to demonstrate.

I'm very curious if someone could help me strengthen the method. Is this safe enough? Or is there something that I'm missing.