I'm sure I'm overlooking something very simple here.
On the new version of my site I'm trying to avoid addresses like index.php?page=this&action=that so I'm using my own template system. I'm trying to make it nice and tidy too so instead of having for example /pages/this.php I can have /pages/this and then either have an index.php file in the "this" folder or use a custom 404 error file to grab the appropriate page I haven't decided yet.
The issue I have is with forms. When I submit the form to to, in the above example lets say, to /pages/this/index.php the form works and any post variables are displayed or processed as required, but when I submit to /pages/this the index.php file loads but the script is unable to read any post variables and I'm not sure why.
Is there any way to make sure my index.php file is able to pick up the post variables when using the above method? I've seen plenty of sites that have forms submitting to /login for example so know there has to be a way to do it.
Thanks in advance :)