dimanche 10 mars 2019

laravel keep form data from refresh of after button pressed

I have a form based on selects for a search with filters (picture attached below). When i pressed the search button, the page reloads and it reset all the selects.

I try to use the old helper, but it does not work properly, it just takes the first option of the select( and it gets rid of the default option as you can see in the pictures below)

Things to know: it is a form with a get action, it is not intended to store or edit something, only for search. So, how can i properly get the old data when refresh or after pressing the search button?

Example1 example2 examplegui

This is my first attempt and it did not work same for this one too. as you can see in this image, it deletes the default option, and it shows the first option



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire