$_Post problems
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4065978/what-is-this-notice-referring-to">what is this notice referring to </a>  </p>
</blockquote>



<p>can i get an answer in plain English please 
i am new at this .. the better it is explained the fewer times i will need to repost</p>

<pre><code>Notice: Undefined index: username in C:\wamp\www\espn.com\login.php on line 16

Notice: Undefined index: password in C:\wamp\www\espn.com\login.php on line 17

1&lt;?php
2
3//Database Information
4
5 $dbhost = "localhost";
6 $dbname = "users";
7 $dbuser = "root";
8 $dbpass = "*****";
9
10 //Connect to database
11
12 mysql_connect ( $dbhost, $dbuser, $dbpass)or die("Could not connect: ".mysql_error());
13 mysql_select_db($dbname) or die(mysql_error());
14
15 session_start();
****16 $username = $_POST['username'];
17 $password = md5($_POST['password']);****
18
19 $query = sprintf('SELECT * FROM users WHERE username="%s" AND password="%s"',
20    ($username), ($password));
21
22 $result = mysql_query($query);
23
if (mysql_num_rows($result) != 0) {
$error = "Bad Login";
    include "login.html";

} else {
    $_SESSION['username'] = "$username" ;
    include "memberspage.php";
}
</code></pre>
