<?php
if(trim($_POST['password']) != trim($_POST['repassword'])){
exit ("twice The password used is inconsistent, please return to the previous page");
}
$username = trim($_POST['username'] );
$password = md5(trim($_POST['password']));
$conn = mysqli_connect('localhost ','root','root','informationtest','3306');
if(mysqli_error($conn)){
mysqli_error($conn);
exit;
}
mysqli_select_db($conn,'my_my');
mysqli_set_charset($conn, 'utf8');
insert into informationtest (id,name,password,) value('','$username','$password');
?>
You accessed the file directly, not through the server
Then you have to look at the html to see if there is no name