Re: Page works when Form Action is Get but not Post



Michael Brennan-White wrote:
If I submit my for using a get action the resulting page loads .  If I
use a post action I get an error page saying "The page cannot be
found".  I am calling the originating page!!!  This happens in IE as
well as FireFox.

This code has been tested on a Win2003 server, IIS6, PHP 5.0.3, mySQL
4.1.8 and it works fine.

The problem server is a Win2k server, IIS5, PHP 5.0.4, mySQL 4.1.11.

Any help would be greatly appreciated especially any tips for debugging
the page.

The lovely code for your review:

<SNIP 400+ lines of code>

Dude, you really need to learn to produce a minimum test-case before you post on a newsgroup. No-one wants to trawl through 450 lines of code to look for an error, especially since 99% of that code probably has *nothing* to do with the problem!

Just take out of chunks of code until the problem disappears, and then either undo the last thing you did and re-post on the newsgroup, or figure out what it was that changed.

Part of the art of debugging is eliminating as many factors as possible, and then concentrate on the things that might actually be the cause of the problem.


-- Oli .