now I have my connect.php print "connection successful" if I connects successfully, which it does so that part is correct.
but it doesn't print the username and password.
I think I am doing something wrong with the Array[password] and [username]. either they aren't getting sent from index.php to login.php or I am stupid and don't know my PHP functions.