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 example, you have a lot of dynamic sections in your website, loading them all using PHP is very costly since server has to get a lot of data from database …
Read More “Load content when scrolled – AJAX, Javascript, PHP & MySQL”
When it comes to deploy Node JS app, Heroku is by far the most feasible choice for beginners and startups. In this tutorial, we are going to teach you how you can deploy your Node JS application on Heroku and make it accessible from everywhere. It is very common when we start building our Node …
Read More “Deploy Node JS app on Heroku”
Ever come across a problem where you enter some value in input type number and while you scroll down or up, you will see that the value of that input field is changed. It is because of the default behavior of the browser, it increments or decrements the value of input fields having “type” attribute …
Read More “Disable scroll on input type number – Javascript”
In this article, we will learn how to preview image before upload from input type file using Javascript. A FileReader object is used. The following code will display an input type file from where the user can select an image file. As soon as he selects the image, it’s preview will be displayed in an …
Read More “Preview image from input type file before upload – Javascript”
So we are going to teach you how you can upload the file from HTML form along with other input fields in Node JS. We will be using NPM’s formidable, fs (file system) and EJS modules. We will create an input type file to select a file from computer and input type text, the file …
Read More “Upload file along with other input fields – Node JS”
A newsletter is a printed or electronic report containing news concerning the activities of a business or an organization that is sent to its members, customers, employees or subscribers. Newsletters generally contain one main topic of interest to its recipients. In this article, we will discuss you how can send bulk emails using the PHP …
Read More “PHP – Subscribe to Newsletter and send Bulk Emails using PHPMailer”
Learn how to add dynamic rows in a table tag in HTML and Javascript. And also save the data in MySQL database using PHP. Introduction Suppose you are trying to generate an invoice for your customers. You wanted to have a functionality where you will be able to add multiple items in an invoice. A …
Read More “PHP – Add Dynamic Rows in Table Tag”
Learn how to create a custom auto complete view in vanilla Javascript. Auto complete view is a feature in which an input field predicts the rest of a word a user is typing. In most frequently fields like city names, users can typically enter some words. And wait for seeing the suggestions to accept one …
Read More “Custom auto complete view – Vanilla Javascript”
In this article, we are going to show you how you can get realtime website users counter using Node JS. Paste the following code in page where you want to display the counter: HTML CSS Display currently registered users Paste the following code before the counter is displayed: This will return the number of users …
Read More “Show realtime website users counter – Node JS”
In this tutorial, we will teach you how you can prevent user from login for 30 seconds after they made 3 failed login attempts. We will be using PHP. We will be saving a session variable of integer type, which will store the number of failed login attempts. So every time user enter the wrong …
Read More “Prevent user from login for 30 seconds after 3 failed login attempts – PHP”