can be used with any form, and any number of form fields, as long as you create the required and expected arrays. 
http://www.lynda.com/PHP-tutorials/Making-sure-required-fields-arent-blank/123485/129196-4.html