Simple PHP Login does not work
<p>This is my script:</p>

<pre><code>session_start();
include "../inc/conn.php";
if ($_GET['login']=="yes") { 
 echo 'test2';
$username=$_POST('username');
$password=$_POST('password');
echo $username.' '.$password;
$userq=mysql_query("SELECT * FROM members WHERE username='$username' AND password='$password'") or die(mysql_error());
if (mysql_num_rows($userq)=="1") { $_SESSION['chkuser']="confirmed"; $_SESSION['username']=$user; }
else { echo 'Потребителското име и/или паролата са грешни. Моля опитайте отново.'; }
}
echo $user.' '.$pass;
if ($_SESSION['chkuser'] &lt;&gt; "confirmed") {
echo '&lt;div align="center"&gt;&lt;strong&gt;Моля въведете име и парола&lt;/strong&gt;:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;';
?&gt;
&lt;form name="form1" method="post" action="?login=yes"&gt;
  Потребител: &lt;input type="text" name="username"  /&gt;
Парола: &lt;input type="password" name="password" /&gt;&lt;br/&gt;&lt;br/&gt;
    &lt;p&gt;&lt;input type="submit" name="Submit" value="Вход" /&gt;&lt;/p&gt;
  &lt;/div&gt;
&lt;/form&gt;
&lt;?
exit();
}
</code></pre>

<p>Test 2 is echoed, but username and password are not sent via POST - scripts breaks after $_POST is used.. Do you guys see where my error is ?</p>
