B
B
BonBon Slick2018-02-03 17:21:26
symfony
BonBon Slick, 2018-02-03 17:21:26

Old input without form package?

How to get the old data of inputs and selects that the User entered before the error was made?
That is, the user entered: email, login, password and its confirmation, clicked confirm, but he got an error by refreshing the page, thereby resetting all the data that he entered earlier.
Although at the same time errors are still displayed to him.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-02-03
@BonBonSlick

All data that the user enters access to $request.
As a rule, the data from the request is transferred to the form and does not disappear anywhere.$form->handleRequest();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question