I believe that there's either a mistake during my code, or my PHP or Apache is to establish improperly.

After I submit an application having a hidden area inside it, I don't have any data during my $_Publish array...

After I comment the hidden area during my code, the Publish information is came back properly...

HTML FORM

<form action='/utils/login.php ' method='POST'>
<table>
    <tr>
        <td colspan='2'>
            Login
        </td>
    </tr>
    <tr>
        <td>
            Username
        </td>
        <td>
            <input type='text' name='userid' value='' size='12' />
        </td>
    </tr>
    <tr>
        <td>
            Password
        </td>
        <td>
            <input type='password' name='password' size='12' />
        </td>
    </tr>
    <tr>
        <td>
            <input type='hidden' name='formtype' value='login' />
        </td>
    </tr>
    <tr>
        <td>
            <input type='submit' value='Submit' />
        </td>
    </tr>
</table></form>

This is actually the code that's processing it in PHP...

foreach ($_POST as $var => $value) {
     echo "$var = $value<br>";
} 

I'm using PHP 5 and Apache 2.2 on my small server.

Any ideas?

EDIT...

I've simplified it lower for this...

$command = $_POST['formtype'];

After I removed the @ sign from the $_Publish, I get the next error...

Notice: Undefined variable: formtype in C:webrootutilslogin.php online 17

Basically comment out that line, the Publish information is passed in to the program with no problem.

I recommend altering the code you're using to show the items in $_POST to some single call:

print_r($_POST);

As you are exhibiting the whole items in an assortment, this is preferable to a loop w/ echo, because it can have every value at each degree of the array.

Also, as was pointed out inside a comment, make certain you close up the shape within the html.

You won't ever closed your <form> tag.

And That I see since someone beat me into it with a mile within the comments. Still, this is actually the right answer.

Perhaps you have attempted using the hidden input from the table and placing it immediately after the outlet form tag?

You may also use:

var_dump($_POST);

...to see the publish variables.

Also, if any inputs are now being dynamically produced or may be missing in the Publish variables... you should use:

variable = 'default';
if(isset($_Post['variable'])) $variable = $_POST['variable'];

...to dynamically set variables that may be there or otherwise.