For a guide to using the MK_Form
class
consult the creating forms guide.
When the object is first instantiated you must give it an array defining the fields in your form. The options are described in the creating forms guide. The below examples demonstrates how to create a basic form with one text input field requiring an email address to be entered.
Returns an instance of MK_Form_Field
based on the $field_name
specified.
Returns an array
containing all of the fields contained within the MK_Form
object. Each array value is indexed by it's key name and contains an instance of MK_Form_Field
.
Returns true
if a field with the given name exists.
Returns a boolean
as to wether or not the form has been submitted.
Returns a boolean
as to wether or not the form has been submitted and validated, correctly.
Returns a string
containing the form HTML.