I have a registration form, and when I create test accounts, all that is being put into the record's fields are 0's. I go to register again with an already registered username, and it says that the username is already in use. how can this be? are there hidden records somewhere?

here is some of my code:

$dbPassword = md5($pword);

        mysql_query("INSERT INTO members (username, password, email, IP, confirm)

        VALUES ('$uname', '$dbPassword', '$email', '$IP', '$confirmCode')");
$email =  mysql_real_escape_string($_POST['email']);

    $confirmEmail =  mysql_real_escape_string($_POST['confirm_email']);

    $uname =  mysql_real_escape_string($_POST['uname']);

    $pword =  mysql_real_escape_string($_POST['pword']);

    $confirmPword =  mysql_real_escape_string($_POST['confirmPword']);

    $terms =  mysql_real_escape_string($_POST['terms']);

    $IP = $_POST['IPAddress'];

    $confirmCode = mt_rand(1754259785, 9875697423);