Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

How to get form data in PHP

Started by Muut Archive 10 years ago · 2 replies · 898 views
10 years ago

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

10 years ago

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...

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2541 9 years ago
Archive · by Muut Archive, 9 years ago
2 1669 9 years ago
Archive · by Muut Archive, 9 years ago
2 4953 9 years ago
Archive · by Muut Archive, 9 years ago
1 3777 9 years ago
Archive · by Muut Archive, 9 years ago
3 1785 9 years ago