How to do MVC form url formatting?
- by dqhendricks
I am using PHP. I want to create an MVC setup from scratch to learn more about how MVC works. I want to use clean urls with slashes as delimiters for the arguments. How do people do this when it comes to GET method forms? Or do people avoid GET method forms all together?
As of right now the ways I can imagine are:
Don't use GET method forms (although this makes it harder to let users bookmark/link in some cases).
Use AJAX instead of form submission (although what do you do for SEO and JS disablers?).
Have page submit to itself with post method, then reform the post vars into an url, then rerout to that url using headers (seems like wasted resources).
Any suggestions or suggested reading welcome.