While we’re still talking about validation and security now is a good time to tell you that Formr is ready for HTML Purifier - and it’s real easy to set up.
Just download HTML Purifier and tell Formr where the HTML Purifier class is located (full path!
However, if you’re posting an array of text fields, then they’ll be returned as an array.
Formr is extensible in that it has some additional classes to which you can easily modify and add methods; this should hopefully make your life a little easier by enabling you to build, save and share custom dropdown menus, CSS classes, field wrappers, and form/validation sets.
Here is the HTML and PHP code for the form we will be working with: The form will look something like the following - your basic no-frills feedback form: For testing purposes we've removed all the usual Java Script Form Validation and HTML5 Form Validation so the form can simply be submitted and validated by PHP on the server.
You'll notice that we've used PHP to insert the form as the current page.
Heck, I’m the only person (up until now) that’s ever used it!
So if you find a bug, And if you find Formr useful (bugs and all), please consider a donation.
A formmail script is the easiest way to collect submissions from the HTML forms.