Like unlike using AJAX, jQuery and PHP

Like unlike functionality used in many websites to know the user response to their content or article.

In this tutorial, I will add like and unlike buttons within the content and handle with jQuery and PHP.

In the demonstration, I will show the list of posts within these posts they have like unlike button.

It also has a label that shows how many totals like and unlike gets a post. Whenever the user clicked on a button the value of the label gets changed.

Like unlike using AJAX, jQuery and PHP

Read more

Secure Your PHP Forms with Google reCAPTCHA v2 Integration

Websites are a big deal in our lives today. They let us chat with friends, get info, and even do business. But now that websites are so popular, spam and bots are a big problem.

Google reCAPTCHA v2 is useful in this situation. It’s a free tool by Google that boosts website security by ensuring that visitors are humans, not robots.

So, you know those annoying spam messages that show up on websites? Google reCaptcha helps stop ’em. Adding reCAPTCHA v2 to your website is a breeze! Once it’s set up properly, it’ll display an “I’m not a Robot” checkbox on your form.

When it gets clicked then different types of images on the screen display and you have to select the images that match the question asked.

In this article, I show how you can integrate Google reCAPTCHA v2 with PHP and also explain its advantages.

Secure Your PHP Forms with Google reCAPTCHA v2 Integration

Read more

Modules and import in Python

Sometimes you may think that “how do I import some code I wrote in one file into another”?. You don’t want to write the same block of codes or redefine in your file. I this tutorial we talked about it. Contents What is Module Import Import with alias from with import Difference between from import … Read more

Different Types of Loop statement in Python

Loop statements are an essential part of any programming language, as they allow us to repeat a block of code multiple times. This reduces the coding work and the frustration of writing the same code multiple times.

In Python, there are different types of loop statements that are used for various purposes.

There are the following types of loops available in Python –

  1. While
  2. for

You can also specify the else block with a looping statement.

Different Types of Loop statement in Python

Read more