Passing variables from a page to another

Hey guys,

I have a form on my site-s homepage which is used for filtering content. How could I proceed passing the selected form values to a different page? For example, I select the location of my user profiles on the homepage, and display all the profiles that match that location on a different page.

Do I need to do anything with routes? Or is there a way to pass variables from my homepage to the other page via the controller?


Put the logic into the controller of the page where you want the results to appear. And give the form an action attribute with the path/URL of that same page.

Oh awesome, thought about that but I didn’t think it was this simple haha. Thanks!