In our previous section, we show you how to connect to database in php. In this post, we will show you how to insert data into database. require 'connect.php'; imports the php file which has been already defined. Its demo is shown here. The $_POST['username'] and $_POST['password'] takes value of input value in html form. Then, "if($u_pass !=