I am looking for free/opensource php form email script/class. The main requirement is that the PHP (logic) and the HTML and CSS (design) are separated, i.e. i can create forms as short or as long as i need with all kinds of inputs/fields and the script would handle the processing automagically.
The form should validate user input (check for empty fields, sanitise code and check emails against regular expressions), have the option to define required fields, have anti-spam features such as captcha, return errors so that they can be highlighted to the user and email results to specified address.
If possible have the ability to use it in commercial projects without back links.
So far I’ve found: PHPFormailMail but it doesn’t seem to be supported anymore and Wufoo requires back links and is hosted offsite.
Not too much to ask? Does anything like this exist? Are there any web services they help create contact forms if no php script is available?
Nobody seems to have mentioned PHPMailer-FE, you can use with multiple forms, it’s a Form to Email gateway, you can add hidden fields for configuration, it’s really nice. And it’s from the same dudes that make PHPMailer, so It is GOOD. Here’s the manual.
As for validation I suggest you use fValidator or LiveValidation, that way you can keep your forms separated with it’s own validations each.
Hope it helps!