php include email form with attachment

Posted on 16th Feb 2014 by admin

I have had no luck with finding a email form all over the Internet for various reasons. Some insecure, some simple, some lack of attachment capability, some use redirect, etc. How does one find the right secure one? It's hard to believe that email form is one of the most basic needs yet there is barely any to find.

The ideal email form would contain as follows:

- php include. include email form into any php page
- field error (or required field) displayed next to the field(s) rather than pop-up javascript error window
- addable fields
- thank-you message displayed below/above email form after submitting rather than redirecting to another page or ?extenstion (use same URL address)
- secure, anti-spamming. Need CAPTCHA or is there secure enough without captcha?

- attachment capability (not necessarily uploaded to a directory folder)
- attachment files types accepted only (e.g. .mov, .wmv, and .flv only)
- choice of size maximum

Anyone who is experienced knows a code? Thanks in advance.

Other forums