Perhaps there is some whitespace before/after the 'C'...

echo "'$_POST[status_code]'<br />\n";

You should then see some whitespace inside the '' so you'll know it's
there.

This is a VERY good debugging technique to adopt. :-)


My own methodology is to use one of the following to peer into an array (of
any sort):

<code>
echo '<pre>';
print_r($_POST);
echo '</pre>';

echo '<pre>';
var_dump($_POST);
echo '</pre>';
</code>

Wrap one of those in a function or put it in a static class to call when
needed, and voila!, instant array introspection. Useful for $_GET, $_COOKIE,
$GLOBALS, $_SERVER, etc...

p.s.: Could you use descriptive subjects; include???? doesn't really say
much...

--
Jared Farrish
Intermediate Web Developer
Denton, Tx

Abraham Maslow: "If the only tool you have is a hammer, you tend to see
every problem as a nail." $$

Reply via email to