Handling forms and form data with NextJS App Routing.
I have a page that has a simple form with two fields. I use the action and method attributes of the form element. Let's call the first page page1 and the other page page2.
I load page1 in the browser with its form element and all is well. The action attribute has the value of "/page2" and the method has the value of "POST".
My question is simply how do I retrieve this value on the server so I can display them in page2 and and get page2 to render on the client side using NextJS as a full-stack framework with App Routing?
I figured out how to do it with Page Routing, finally but that is not pretty. I was hoping to use the new App Routing instead but there is absolutely no documentation about how to do something simple as this. I'd appreciate some help on this and also how you migrate from getServerSidePops() in Pages routing to App routing where getServerSidePages no longer exists, what are you supposed to use instead? Unfortunately the documentation doesn't cover any of this from what I can make out after a few days of trying to read through it.