[FX.php List] [Probably OFF] What happened to my $_POST array?

Troy Meyers tcmeyers at troymeyers.com
Sat Jun 23 10:28:14 MDT 2012


A user just complained of getting an error message when trying to get to a page for uploading photos. In checking, I see that no one has uploaded any photos since 5/31/2012. I'm guessing everyone has been having the problem, but not speaking up, probably because they assumed it was another instance of my FileMaker Server 12 issues cropping up.

In checking on it I see what is happening, but I don't understand it, since it had been working for years.

The problem is that the button to get to the page includes:

<input name="Account ID" type="hidden" value="<?php echo $user_id; ?>" id="Account ID" />

...so that at the destination page I'm expecting a value for this:

$_POST['Account ID']

And, apparently until about 6/1/2012, I've been getting that. But now, that array element shows up as this instead:

$_POST['Account_ID']

so of course all of my code that looks for $_POST['Account ID'] fails.

Is there some setting that I've accidentally changed that turns spaces into underscores when the $_POST array is reported?

-Troy



More information about the FX.php_List mailing list