When a form is not published on its page, what is the best way to convey the error state?

If I have a form that is on the page http://foo.com/getbut submitted to http://foo.com/post, what is the best way to handle the display of validation errors? I want to redirect the user to the first page. How can I lock the state of the form (including error messages) so that on the next request after redirecting to http://foo.com/get, I can capture this form and visualization. Any ideas?

+3
source share
1 answer

You can use a session, but it requires some mechanisms.

. , . , .

, , . , ( , ):

, , . (, , ) . . ( AJAX , .)

+1

Source: https://habr.com/ru/post/1752177/


All Articles