Laravel Form Validation Reload F5

Asked

Viewed 69 times

1

I have the following doubt:

Once I make the Submit of a form it makes the validation right, but if I give F5 in the browser it disappears with the error messages and also add the values of the fields that have already been filled.

I could fix that?

Thank you

  • What kind of form are you submitting and validating? Login? Registration of something?

  • Hello Darlei, it is a simple registration form. I am validating if the fields are filled and Talz.

  • There is an odl() function in the Variable, you can check if it helps you, but usually if you give an F5 in a form it will be empty even, what you could also do is validate the fields by JS, AJAX or something that does not redirect the page, but if you have to use controller functions, can use old(), it keeps value in inputs after giving Submit.

  • So Darlei I am using the old to recover the completed data from the form, my only problem is that when I give the F5 in the browser it disappears until that data and the validation messages.

  • Because pressing F5, error messages and return values is a flash only works once ( if I’m not mistaken and if not changed it)

  • So Virgilio thought he had a parameter to inhibit that. Do you know if there was any way to reverse that?

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.