Posts

Login Check Module using PHP and HTML

Image
Implementing Login Check using PHP and HTML         In this article we are going to learn how to create a simple Login form using HTML and How to check Login is successful or invalid using PHP Coding .  So create a file called login.php and copy and paste the below code and save it on the server, in some folder. In this file you will see 2 parts. One is the login form code and above the PHP code.  Login form having form tag with name, action, method attributes. Next 2 input tags, one is username - text box- called 'username' and another input tag type password and its name is 'password'. Another input tag is Submit button.  When the User submits the form, then the data the user submitted (username, password) will be transmitted to the server in the form of the post method. PHP checks whether the Submit button is clicked or not, then reads those posted values using name attributes and stores them in PHP variables. Next, It compares them with ...

AJAX with XMLHttpRequest Object

Image
  Implementing AJAX with XMLHttpRequest Object and PHP MySQL     What is Ajax?   AJAX is a technique for accessing web servers from a web page. Updating the part of the webpage with server response without refreshing the page, is called AJAX technique.     XMLHttpRequestObject predefined object in JavaScript.   All the modern browsers will support XMLHttpRequestObject.   AJAX stands for Asynchronous JavaScript And XML.   How it works?   The below picture depicts the Ajax technique flow between client and server.           First client request sent to server through XMLHttpRequestObject The server processes the request and sends a response to the webpage. Client no need to wait for response. Sending and receiving tasks are performed simultaneously.               SQL Query :     CREATE TABLE IF NOT EXISTS `students` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT , ...

Develop Bootstrap-4 Signup Form in PHP

Image
 How to Develop Bootstrap-4 Signup Form in PHP and MySQL   This article teaches you how to use bootstrap 4 in developing signup form. Bootstrap supports HTML form controls such as textbox, password, email, radio buttons, checkboxes, textarea, buttons and other controls available in html5. So Using some of these controls we are developing a signup form. This code also has MySQL code to store form data in a database. If needed, can enable those commented lines.          bs4-registration-form.php <!doctype html> <html lang= "en" > <head> <!-- Required meta tags --> <meta charset= "utf-8" > <meta name= "viewport" content= "width=device-width, initial-scale=1" > <link rel= "stylesheet" href= "https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" > <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js" ></script...