Unable to file_get_contents on form action in php
<p>My form action is set to a php file like this:</p>

<pre><code>&lt;form name="addstudent" action="includes/data.php?act=enquiry" &gt;
    &lt;input type="text" name="studentname" class="univtext default" value="Name" /&gt;
    &lt;input type="text" name="studentemail" class="univtext default" value="Email" /&gt;
    &lt;input type="text" name="studentno" class="univtext default" value="Contact No." /&gt;
    &lt;input type="hidden" name="active" value="enquiry" /&gt;
    &lt;input type="submit" value="Apply" class="univbut" &gt;
&lt;/form&gt;
</code></pre>

<p>and my php file data.php is:</p>

<pre><code>&lt;?php
    switch($_GET['act'])
    {
        case "enquiry":
        include_once('globalvariables.php');
    $dataUrl='http://localhost:8080/databasee/track?country='.SITE_ACCESS_COUNTRY.'&amp;region=delhi';
    $json=file_get_contents($dataUrl);
    echo $dataUrl;
    echo($json);
    }
?&gt;
</code></pre>

<p>My dataurl is formed correctly but <code>file_get_contents()</code> function is not getting the value from the url (this url returns json true or false) in other cases it working fine, it's  just here I am not able to get it working.</p>

<p>I found that &amp;region parameter in my url converts to ®ion.</p>
