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?
http://foo.com/get
http://foo.com/post
You can use a session, but it requires some mechanisms.
. , . , .
, , . , ( , ):
, , . (, , ) . . ( AJAX , .)
Source: https://habr.com/ru/post/1752177/More articles:Does Rails Routes redirect controller action to root? - ruby | fooobar.comAndroid: Отдельные намерения для электронной почты и SMS - androidСезам SeRQL не предоставляет вариант обновления/вставки? - ontologyhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1752175/how-to-check-whether-a-repository-exist-or-not&usg=ALkJrhiw7r-YQmmrRVLs-QnprUC3LSh-Twmvn install ignores hibernate mapping files - javagit push, where is the hidden source code? - gitThe problem with realloc () in C. Always freezes, but compiles fine - cHow to change a local group policy program setting - group-policyКак перенаправить URL-адреса нижнего регистра ('questions/add_to_favorites/123') с символами подчеркивания в ASP.NET MVC2? - asp.net-mvc-2Env variables for plugins in PHP on Windows - windowsAll Articles