Hi
I am building a small site (or trying to!) and my index.php page is actually an include file which is included by every page on my site. My index page initially detects different POSTS from different scripts and runs some redirects based on the rules I have written which works great so far when the POST action of my forms are set to be action="/" as you would expect.
However, I have a new page now that has a form, again it includes the index.php file at the top of the script but I have set the form action to be the path to this script via the URL as such:
action="/path/to/script"
At ths top of this script I have created some POST detection script but it never seems to be executed:
if (!empty($_POST['searchbox'])) {
// do something
}
Why is this? What am I missing here??
Any help would be appreciated.
Thank you.