Page 53 of 58

How to disable button after clicking submit using jQuery

Last updated on March 10th, 2022 at 07:41 amSometimes when user click a submit button multiple times it became an issue at the backend. May be the server side processing the request is not having a logic to track duplicate submission or anything of that sort. How can we prevent this duplicate submit from happening […]

Replace images with time intervals using jquery

Last updated on January 25th, 2023 at 11:20 amIn this tutorial we are going to see how to replace images with new ones in specific time intervals. For example: replacing image1.jpg with image2.jpg every 5 seconds. Using setInterval() we are triggering a call to swapImages() function every 5000 milliseconds. So, before proceeding, we need to define […]

How to restrict access to php file

Last updated on March 23rd, 2022 at 01:00 pmIf you don’t want users to access some files directly from browser, you can simply add the following php script on top of such files. Let us take one file named MYFILE.PHP as an example, all you have to do is just add the below code on […]

How To Set And Get Cookies Using PHP

Last updated on November 23rd, 2022 at 07:54 amHere is a simple code that explains how a cookie is set and retrieved using php. A cookie is set with the following code: setcookie(name, value, expiration) The above code sets a cookie named “MyVisit” in the visitors browser. The cookie sets the value to the current […]

« Older posts Newer posts »