PHP and MySQL How to connect #HTML #login form to #PHP and #MySQL Part 2
In this video we will learn how to connect HTML login form with PHP and MySQL database for login operation. If email and password match then user will get message login successfully other wise he or she will get message Invalid user name or password.
PHP and MySQL - How to create Login Form using HTML and Bootstrap v4.4 #1
https://youtu.be/O5YDHGcb3F0
To get the form data into the php file we need to specify php file name inside the opening tag of form with action="login.php" login.php is a file name in the same directory where our html code is the next attribute is method="post". we have two method to send data to server get and post. For sending the sensitive information always use post method
For getting the input field value inside the php file we need to specify name of that input using name attribute of HTML
Now inside the login.php file write the following code
$email = $_POST['email'];
here $email is a variable we are getting email using $_POST global variable $_POST['email']; here email is the name of input field
$con = new mysqli("localhost","root","","test");
$con is a variable which hold the $con object
Видео PHP and MySQL How to connect #HTML #login form to #PHP and #MySQL Part 2 канала Technical Babaji
PHP and MySQL - How to create Login Form using HTML and Bootstrap v4.4 #1
https://youtu.be/O5YDHGcb3F0
To get the form data into the php file we need to specify php file name inside the opening tag of form with action="login.php" login.php is a file name in the same directory where our html code is the next attribute is method="post". we have two method to send data to server get and post. For sending the sensitive information always use post method
For getting the input field value inside the php file we need to specify name of that input using name attribute of HTML
Now inside the login.php file write the following code
$email = $_POST['email'];
here $email is a variable we are getting email using $_POST global variable $_POST['email']; here email is the name of input field
$con = new mysqli("localhost","root","","test");
$con is a variable which hold the $con object
Видео PHP and MySQL How to connect #HTML #login form to #PHP and #MySQL Part 2 канала Technical Babaji
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
How To Make Login & Registration Form In PHP And MySql, Create SignIn & SignUp Page36: How to connect to a database in PHP | PHP tutorial | Learn PHP programmingPHP and MySQL - How to create Login Form using HTML and Bootstrap #1how to connect html form to mysql database ( XAMMP )create mysql database, tables and insert data using php functionsHow to connect HTML Form with MySQL Database using JSP | Registration Page ExampleSimple PHP MySQL system LOGIN tutorial - WAMP ep. 1How to Create a HTML Registration Form using bootstrap(UPDATED VIDEO IN DESC) How To Create A Login System In PHP For Beginners | Procedural PHP TutorialHow to Connect HTML Form with MySQL Database using PHPHow To Make Login & Registration Form Using HTML And CSS Step By StepConnect to MySQL with PHP in XAMPP / Create a new databaseHow to Display Data from MySQL Database into HTML Table using PHP (2020)Simple login form validation with phpLogin logout system with session in php for beginnersUser Registration Form with PHP and MySQL Tutorial 3 - Connect A Signup Form With MySQL DatabaseHow to connect HTML Register Form to MySQL Database with PHP (2020)PHP - Insert Form Data Into MYSQL Database Using PHPHow to Make Login Form in PHP and MySQL