Hi all,
I've got a bit of a problem, I'm trying a new concept (for me at least) where I no longer use URI's (?page=welcome) rather I am using htaccess to mask directories and include a particular file.
For example i have three files
1: index.php
2: .htaccess
3: includes/welcome.php
if someone were to goto www.sample.com/welcome/ the htaccess file would point to the index file using "ErrorDocument 404 /index.php".
The index file would then do this:
$path = explode("/",$_SERVER['REQUEST_URI']);
include("includes/".$path[1].".php");
creating the effect that there is actually a file.
Sorry to go on but this works fine, what doesn't is post methods!
Lets say I have a post form on www.sample.com/welcome/ I fill in the fields click "Submit", the page reloads but nothing happens, I try echo out $_SERVER['REQUEST_METHOD'] and i get "GET" insted of POST. Why is this?
I've check everything including, and it's not a silly mistake. htaccess must transparently redirect my browser to index.php in a "GET" method ignoring any "POST" data.
Can anyone help?