I was wondering though...is there a way to prevent the honeypot fields being added to k_success and being sent?
Sure. You can be much more specific about what gets sent by a successful submission. Your code simply sends all of the fields by using <cms:show k_success />.
- Code: Select all
<cms:send_mail from=k_email_from to=k_email_to subject="<cms:get_custom_field 'site_name' masterpage='globals.php' /> Contact Form">
<cms:show k_success />
</cms:send_mail>
Instead you can show each field separately and leave out the unnecessary ones.
- Code: Select all
<cms:send_mail from=k_email_from to=k_email_to subject="<cms:get_custom_field 'site_name' masterpage='globals.php' /> Contact Form">
Name: <cms:show frm_name />
Email: <cms:show frm_email />
Message:
<cms_show frm_message />
</cms:send_mail>
For myself, I use the user's email as the "from" parameter of the send_mail tag. That way I can simply reply to the email in order to respond. It's possible that some hosts might balk at this, but I've never had any trouble.
- Code: Select all
<cms:send_mail from="<cms:show frm_name/> <<cms:show frm_email/>>" to=k_email_to subject="<cms:get_custom_field 'site_name' masterpage='globals.php' /> Contact Form"><cms:show frm_message /></cms:send_mail>
I'm glad that you included my custom tag in your boilerplate.
