Welcome Guest, Not a member yet? Register   Sign In
Form validation with redirect
#1

Although this subject has come up a munber of times, tantalisingly the posts do not quite address my problem.

Assuming form validation fails, the 'send' function needs to reload the form page with the validation error messages. However, because the form is some way down the page, I want to add '#anchor' to the url and autoscroll down to the form. So the only way to do that is to use the url helper redirect() function. That gets me back to the form OK but now the validation messages are not being passed.

My question is how can achieve both these requirements: passing validation data and also autoscrolling down to the form?

I wonder whether in some way I can add an array of validation messages to flashdata and pass it that way?

I can't believe this is not a typical problem. Any ideas?
Reply


Messages In This Thread
Form validation with redirect - by msheath - 10-26-2015, 04:42 AM
RE: Form validation with redirect - by Martin7483 - 10-26-2015, 05:34 AM
RE: Form validation with redirect - by msheath - 10-26-2015, 07:26 AM
RE: Form validation with redirect - by Martin7483 - 10-26-2015, 07:44 AM
RE: Form validation with redirect - by msheath - 10-26-2015, 08:09 AM
RE: Form validation with redirect - by msheath - 10-28-2015, 02:39 AM
RE: Form validation with redirect - by Narf - 10-27-2015, 03:42 AM
RE: Form validation with redirect - by msheath - 10-28-2015, 02:54 AM
RE: Form validation with redirect - by Narf - 10-28-2015, 04:21 AM
RE: Form validation with redirect - by msheath - 10-28-2015, 04:50 AM
RE: Form validation with redirect - by Martin7483 - 10-27-2015, 12:16 PM
RE: Form validation with redirect - by msheath - 10-28-2015, 02:15 AM
RE: Form validation with redirect - by mwhitney - 10-27-2015, 12:29 PM
RE: Form validation with redirect - by Martin7483 - 10-28-2015, 02:41 AM
RE: Form validation with redirect - by Martin7483 - 10-28-2015, 05:00 AM
RE: Form validation with redirect - by msheath - 10-28-2015, 05:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB