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 · 704 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 1357 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2955 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago