Why do you need to use GET?
-
- 4 Posts
I have a form for choosing products based on their parameters.
What I need is to have filled in parameters preserved after the search is complete in order to be able to correct them and click on "submit" again.
There are also pages with links leading to my page with an additional parameter. For instance, 123.com?rtype=3. These pages display products with a specified value of the TV rtype.
I'm also planning to use links with certain values of GET for certain types of products for SEO.
I process all parameters using my snippet and pass them to getPage.
It, too, uses GET for pagination. That is when clicking on page 2, all values of GET are reset.
In other words I need FormIt only for saving values after submitting the form. It works fine with POST but not GET.
It's not necessary to use FormIt specifically. I just need a way to preserve all values of INPUTs after submission.
-
- 24,544 Posts
You might be able to use a preHook or postHook with FormIt to set the $_POST values from the $_GET parameters. I'm not sure it would work.