title: what is this notice referring to
body: <p>Notice: Undefined index: name in C:\wamp\www\espn.com\registration.php on line 12</p>
  
  <p>Notice: Undefined index: username in C:\wamp\www\espn.com\registration.php on line 13</p>
  
  <p>Notice: Undefined index: password in C:\wamp\www\espn.com\registration.php on line 14
  I'm sorry but the username you specified has already been taken. Please pick another one.</p>
  
  <p>coding </p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;?php
  $dbhost = "localhost";
  $dbname = "users";
  $dbuser = "root";
  $dbpass = "*******";
  
  mysql_connect ($dbhost,$dbuser,$dbpass)or die("Could not connect: ".mysql_error());
  mysql_select_db($dbname) or die(mysql_error());
  
  $name = $_POST['name'];
  $username = $_POST['username'];
  $password = md5($_POST['password']);
  
  $checkuser = mysql_query("SELECT username FROM users WHERE username='$username'"); 
  
  $username_exist = mysql_num_rows($checkuser);
  
  if($username_exist &gt; 1){
      echo "I'm sorry but the username you specified has already been taken.  Please pick another one.";
      unset($username);
      include 'registration.html';
      exit();
  }
  
  $query = "INSERT INTO users (name,username, password)
  VALUES('$name','$username', '$password')";
  mysql_query($query) or die(mysql_error());
  mysql_close();
  
  echo "You have successfully registered";
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>