You can easily get the URL parameter in PHP using PHP’s built-in global $_GET array and pass the associative index as the name of the parameter. But getting that value in Javascript is a bit tricky. So I am going to show you a method that is very simple and will always work.
When people use someone else’s computer and try to log in to their account on any website, they are afraid that the other person might…
Whether you are creating an E-commerce website or simply wanted to receive payments from your website using PayPal and Stripe, this script already contains all…
Learn the difference between onload and addEventListener event listeners in Javascript. If you are creating a website and you want to perform some action in…
In this tutorial, we are going to teach you how you can check email and password separately during login like we have in Gmail. For…
We are going to do a performance test on getting the data from MySQL database using PHP vs getting data from MySQL database using AJAX…
Demo In this tutorial, we are going to teach you how you can count the number of words in textarea as user type in it.…
To shuffle an array of objects or single values in Javascript, use the following function: First, we are looping through all array elements. data is…
Demo Convert time to different timezones Today, we will learn to calculate the time passed since date in days, hours, minutes and seconds. Either you…
In this tutorial, we are going to teach you how you can load the content of div only when user scrolled to that section. For…