Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

How to get form data in PHP

Started by Muut Archive 10 years ago · 2 replies · 703 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 1354 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4064 9 years ago
Archive · by Muut Archive, 9 years ago
1 2951 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago