How to get form data in PHP

Hi,

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?

Vlada

Best is to learn by example. see the Login plugin form processing: https://github.com/getgrav/grav-plugin-login/blob/develop/login.php#L639-L649

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…