FYI I also tried following https://www.geeksforgeeks.org/how-to-insert-form-data-into-database-using-php/ and got a similar looking error -
"Fatal error: Uncaught mysqli_sql_exception: Access denied for user 'root'@'localhost' (using password: NO) in C:\xampp\htdocs\GeeksforGeeks\insert.php:16 Stack trace: #0 C:\xampp\htdocs\GeeksforGeeks\insert.php(16): mysqli_connect('localhost', 'root', Object(SensitiveParameterValue), 'staff') #1 {main} thrown in C:\xampp\htdocs\GeeksforGeeks\insert.php on line 16"
FWIW line 16 is "$conn = mysqli_connect("localhost", "root", "", "staff");"
I'm just so frustrated. Once I get this set up I can experiment with more complicated forms, grabbing the data from them and doing funky stuff with it etc. I'll make something amazing. Right now I can't get it set up to receive someone's name, and am stuck.