I am a PHP developer with nearly 8 years experience, most of which has been spent developing on a LAMP stack.
Today I was building a really simple form, and while testing locally I found that it appeared not to send any data and that the $_POST array in PHP was empty.
A live hearders puglin for firefox showed me what was happening.
My form's action was
The file could be accessed atCode:http://localhost/project-name/landing-page
becuase I had omitted the trailing / for the directory name, apache was issuing a 301 redirect to include it, ieCode:http://localhost/project-name/landing-page/ or http://localhost/project-name/landing-page/index.php
This is something I have never seen before!Code:from http://localhost/project-name/landing-page to http://localhost/project-name/landing-page/
Is it a config setting that I have locally?
Is this normal behavior?
running PHP 5.3.1 on Apache 2 on Windows7 (64) as x86