Posts

Showing posts from March, 2021

Code Area for blogger.

Copy and Paste this Code!!! <div style="background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;">      <pre style="line-height: 125%; margin: 0;"> <-- Code Here -->      </pre> </div>

Blood Group List in HTML

Blood Group --Blood Group-- A+ A- B+ B- O+ O- AB+ AB- <div class="col-lg-6 col-md-6 col-sm-12"> <div class="form-group"> <label class="form-label">Blood Group</label> <select class="form-control" name="bloodgroup"> <option value="BloodGroup">--Blood Group--</option> <option value="A+">A+</option> <option value="A-">A-</option> <option value="B+">B+</option> <option value="B-">B-</option> <option value="O+">O+</option> <option value="O-&q

phone country code in php, html, bootstrap 4 or 5

Image
  Click on the link to view the country code

Store date Picker in MySql Database Using PHP

Image
  ADD_FORM.php <head> <link rel="stylesheet" type="text/css" href="form.css"> <meta charset="utf-8">   <meta name="viewport" content="width=device-width, initial-scale=1">   <title>Add Issue</title>   <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">   <link rel="stylesheet" href="/resources/demos/style.css">   <script src="https://code.jquery.com/jquery-1.12.4.js"></script>   <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>   <script> $(function () {             $("#datepicker").datepicker({ dateFormat: "yy-mm-dd", changeMonth: true, changeYear: true });         });   </script> </head> <form method="POST" action="insert_record.php"> <fieldset> <legend><span cla

How to connect HTML Register Form to MySQL Database with PHP (2020)

Image
 Youtube Videos How to connect HTML Register Form to MySql Database with PHP form.php <!DOCTYPE html> <html> <head> <title>Register Form</title> </head> <body> <form action="insert.php" method="POST"> <table> <tr> <td>Name: </td>  <td><input type="text" name="username" required></td> </tr> <tr> <td>Password :</td> <td><input type="password" name="password" required></td> </tr> <tr> <td>Gender :</td> <td> <input type="radio" name="gender" value="m" required>Male <input type="radio" name="gender" value="f" required>Female </td> </tr> <tr> <td>Email :</td> <td><input type

Complete User Registration System using PHP and MySql database

Image
                                                    References:  Complete User Registration system using PHP and MySql register.php <?php include('server.php'); ?> <!DOCTYPE html> <html> <head> <title>User registration system using PHP and MySQL</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div class="header"> <h2>Register</h2> </div> <form method="post" action="register.php"> <!-- display validation errors here --> <?php include('errors.php'); ?> <div class="input-group"> <label>Username</label> <input type="text" name="username" value="<?php echo $username; ?>"> </div> <div class="input-group"> <label>Email</label> <input type="

User Registration Form with PHP and MySQL Tutorial

Image
Copy the code and getting started with the form index.html <link href="//db.onlinewebfonts.com/c/a4e256ed67403c6ad5d43937ed48a77b?family=Core+Sans+N+W01+35+Light" rel="stylesheet" type="text/css"/> <link rel="stylesheet" href="form.css" type="text/css"> <div class="body-content">   <div class="module">     <h1>Create an account</h1>     <form class="form" action="form.php" method="post" enctype="multipart/form-data" autocomplete="off">       <div class="alert alert-error"></div>       <input type="text" placeholder="User Name" name="username" required />       <input type="email" placeholder="Email" name="email" required />       <input type="password" placeholder="Password" name="password" a

PHP Connects, Insert, Display, Delete and Update

Image
 Welcome to PHP Tutorial How to connect to MySql with PHP in Xampp Install Xampp  Start Apache, MySql Type localhost on Chrome browser or any browser on your PC Goto phpmyadmin and create a database name your database eg: 'testdb' create a php file with the php extension eg: 'connect.php' Type in the Following Code:  <?php $user = 'root'; $pass = ''; $db = 'testdb'; $db = new mysqli('localhost', $user, $pass, $db) or die ("Unable to connect"); echo "Great Work!!"; ?> Save the file under the Xamp/htdocs directory as 'connect.php' After that run the code by type in the Chrome browser as 'localhost/connect.php' and hit enter. You'll see the output as 'Great Work!!' which means it is successfully connected to your database. References Connect to MySQL with PHP in Xamp How to Insert Form Data Into MySql Database Using PHP Create a database name as 'tutorial' and click on Go Create