c# csharp / php / mysql connection
<p>In c#:</p>
<pre><code>private void send_password_chk(){
    string response = Sendpw (&quot;http://localhost/quiz/passwordchk.php?idid=&quot;+Gameid+&quot;&amp;pass=&quot;+Gamepw);
}

private string Sendpw(string url)
{
    try
    {
        using (WebClient client = new WebClient())
        {
            return client.DownloadString(new Uri(url));
        }
    }
    catch(WebException ex) {
        return null;
    }
}
</code></pre>
<p>If I click the button , the function executes.</p>
<p>After I clicked button, in PHP:</p>
<pre><code>$id_val = $_GET[&quot;idid&quot;];
$pw_val = $_GET[&quot;pass&quot;];

$sql = &quot;INSERT INTO member (gameid, gamepw, nickname, birth, gender) VALUES ('&quot;.$id_val.&quot;',password('&quot;.$pw_val.&quot;'),'&quot;);
</code></pre>
<p>I execute the PHP code and I get this result:</p>
<blockquote>
<p>Notice: Undefined index: idid in /Applications/XAMPP/xamppfiles/htdocs/quiz/passwordchk.php on line 8</p>
<p>Notice: Undefined index: pass in /Applications/XAMPP/xamppfiles/htdocs/quiz/passwordchk.php on line 9</p>
</blockquote>
<p>But the insert query is OK. The database has the data.</p>
<p>What is the problem?</p>