print_r showing empty results from POST
<p>Why is <code>$email</code> and <code>$pass</code> not printing out, they are posting as empty. 
I'm getting the following results from <code>print_r()</code></p>

<pre><code>    [email] =&gt; 
    [password] =&gt;
</code></pre>

<p>Below is my code. What am i doing wrong</p>

<pre><code>&lt;?php
$email = $_POST["data[User][email]"];
$pass = $_POST["data[User][password]"];
$base = 'https://api.whatever.com/Api?';

$params = array(
    'Format' =&gt; 'json'
    ,'email' =&gt; "$email"
    ,'password' =&gt; "$pass"

);

$url = $base . http_build_query( $params );
$result = file_get_contents( $url );

echo '&lt;pre&gt;';
print_r( json_decode( $result ) );
echo '&lt;/pre&gt;';
?&gt;
</code></pre>
