hardboiled Reply #1, 2 years, 6 months ago
Is there any way to populate a MakeForm object from $_POST?
For example: You submit a form, validate it, if it's valid then you 'processForm'. But if it's not valid, you just want to show the form again, except this time you want to keep all those user-changed field values from the $_POST array.
I tried using fromArray directly, but that didn't work:
For example: You submit a form, validate it, if it's valid then you 'processForm'. But if it's not valid, you just want to show the form again, except this time you want to keep all those user-changed field values from the $_POST array.
I tried using fromArray directly, but that didn't work:
$WebUserForm->fromArray($WebUser,$_POST);