How to get form data in PHP


I just add form processing plugin (to be able to do custom processing after form submit) and I use:

$vars = array(‘form’ => $form);

to get data from form, but I do not know how to move on, how to get specific form field values from this array?


Best is to learn by example. see the Login plugin form processing:

Thanks… it is easy to get simple form field, but I have file upload on form and I am looking into getting file name, type and size… $form->value(‘file’) does not help…