Why need status active and inactive in PHP? To make any task, user, or function active or inactive is the most important part and essential feature of any web application or website. It is also known as blocking or unblocking of user accounts. Some times user performs irrelevant activities and the ones required to deactivate […]
In this article, you will learn How to Make Fees Receipt in PHP Using Mysql Database. index.php <html> <title>Add fees</title> </head> <body> <h1><a href="add.php">Add receipt</a>       <a href="search.php">Record</a></h1> <form method="POST" oninput="x.value=parseInt(a.value)+parseInt(b.value)+parseInt(c.value)" action="fees.php"> <input type="date" name="date"><br/><br/> Name <input type="text" name="name"><br/><br/> Registration No. <input type="number" name="rno"><br/><br/> Course <select name="course"> <option>Select Course</option> <option value="PHP">PHP</option> <option value="JAVA">JAVA</option> […]
You need a dynamic dependent select box. We will explain how to create a dynamic dependent select box in PHP, jquery and ajax. index.php <?php include_once 'dbconfig.php'; ?> <html> <head> <title>Dynamic Dependent Select Box using Ajax</title> <script type="text/javascript" src="jquery-1.4.1.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#loding1").hide(); $("#loding2").hide(); $(".country").change(function() { $("#loding1").show(); var id=$(this).val(); var dataString = 'id='+ id; […]
In this article, you will learn How to Print Div in PHP using For Looping. <html> <head> <title>div's</title> <style> .ak{ heigth:150px; width:50px; border:1px solid; } </style> </head> <body> <form method="POST"> <h1 name="first"><?php for($i=0;$i<=5;$i++) { echo '<div class="ak">' .$i . '</div>'.'<br>' ; } ?></h1> <h1 name="second"><?php for($j=5;$j>=1;$j--) { echo '<div class="ak">' .$j . '</div>'.'<br>' ; } […]
On any website have a contact page. The contact page has a form to fill and mail will deliver to the administrator. so in this article, you will learn How to Create a mail System in PHP using HTML form. contact.php <html> <head> <title>Contact US</title> </head> <body> <form method="POST" action="mail.php"> <input type="text" name="name" placeholder="Enter Your […]
In this article, you will learn How to Create Cookies in PHP.on Browser A Cookie is used to identify any user. With the help of the PHP, you can retrieve and create the cookie. Syntax:- setcookie(name, value, expire, path, domain, secure, httponly); Create or Retrieve Cookies in PHP Example:- <?php $cookie_name = "user"; $cookie_value = […]
In this article, you will earn How to Create Pagination in PHP. Example:- index.php <?php include('db.php');?> <html> <head> <title>Pagination in PHP</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <table border="1"> <tr> <th>Sr No.</th> <th>Name</th> <th>Father Name</th> <th>Email</th> <th>Mobile</th> </tr> <?php //Getting default page number if (isset($_GET['pageno'])) { $pageno = $_GET['pageno']; } else { […]
In this article, you will learn How to Create ordered or unordered List in the HTML. The HTML have two types of List. ordered List (ol) unordered list (ul) Ordered List <ol type="1"> <li>India</li> <li>USA</li> <li>China</li> <li>England</li> <li>Canada</li> </ol> Output:- India USA China England Canada in ol tag have type is the property. we can […]
In this article, you will How to use Iframes Using HTML on Web Browsers. Syntax:- <iframe src="URL"></iframe> Example:- <html> <head> <title>Iframe with Target Link</title> </head> <body> <iframe height="300px" width="100%" src="https://huboftutorials.com" name="iframe_a"></iframe> </body> </html> Example of Iframe Removing Border <iframe src="https://huboftutorials.com" style="border:none;"></iframe> How to Create List in HTML Check on Facebook
In this article, you will learn How to Play a video on web Browser. <html> <head> <title>Video</title> </head> <body> <video width="320" height="240" controls> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> </video> </body> </html> In the above code <video> tag is used for shows the video. controls are the property of <video> tag which use for show […]