Category: PHP

Drag and drop is a simple way to allow the users to upload their files by dropping to the container. Nowadays most websites allow uploading using both drag and drop and the file browse e.g. PushBullet, Facebook, SlideShare, etc.

I am using AJAX to save the file to the server which triggers when the file dropped on the target container.

In this tutorial, I show how you can implement the similar type of feature in your project and which show thumbnail when the file successfully uploaded.

Drag and drop file upload with jQuery and AJAX

AJAX Jquery PHP

In this tutorial, I will show how you can use PHP to read RSS feeds of the websites and showing recent post lists using it.

RSS (Rich Site Summary) is a format which is used in many websites which allow web publisher to syndicates their latest posts or data automatically. It also benefits to people who want to receive latest posts updates from their favorite websites.

There is another method which allows the user to stay updated is bookmarking. But they need to manually go to websites on the timely basis and check what new have been added.

How to read RSS feeds using PHP

PHP

Like unlike functionality used in many websites to know the user response on 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 this posts they have like and unlike button. It also has a label which shows how many like and unlike get by a post. Whenever user clicked on a button the value of label gets changed.

Like unlike using AJAX, jQuery and PHP

AJAX Jquery PHP

Google reCaptcha generally used to protect the website from spammers. It is best and easy way to show CAPTCHA within the website.

It is easy to integrate into the form and when it properly setup then it shows a I’m not a Robot Checkbox that shows different types of images on the screen when it gets clicked.

The user needs to select images according to the asked question.

How to Integrate Google reCAPTCHA with PHP

How To Javascript PHP

Loop means executing one or more statements up to the desired number of times. Often when you write code, you want the same block of code run over and over…

PHP

Autocomplete search element show suggestion based on user input e.g. listing all products which start with character ‘a’.

For implementing this in the program you need to send AJAX when a keyup event triggers on an input element.

What in the demonstration?

Show an input box for searching users and show the list of the result based on input. When the users select any of the items from the suggestion list then fetch details of the selected value and display it on the screen.

Make Autocomplete search with jQuery AJAX

AJAX Jquery PHP

Sometimes it requires to auto populate data on the element based on selection on another element e.g. City names based on a state.

You can do this with the only PHP but it required you to submit every time on selection.

This solves your problem but it is little frustrating because it submits every time even if the selection is right or wrong.

For making it better you can use AJAX with jQuery that loads new data and removes old one on each selection.

In the demonstration, I am creating a Department drop-down list and based on the option selection show all existing users of that department on another Dropdown.

How to Auto populate dropdown with jQuery AJAX

AJAX Jquery PHP

A Login page is one of the basic requirement when creating a registration based website where the user can register to the website and sign in to its account to manage.

In this case, you can use AJAX to create an user-friendly login page.

Which checks the entered username and password in the MySQL database table without reloading the web page. If the user is not available then show an error message on the screen otherwise redirect the user to a new page.

Login page with jQuery and AJAX

AJAX Jquery PHP

With login page allowing the users to enter in the website and manage its content. It important to initialize the $_SESSION when the user successfully logged in.

This helps to detect the user is actual logged in or not when going to another web pages and also display content according to it.

Create simple login page with PHP and MySQL

PHP

Pagination helps us to split the large list of records into multiple parts. This improves the UI and page load faster.

It limits the number of records visible to the user and requires to navigate through pagination control to view another list.

In this tutorial, I show how you can simply create pagination with HTML, CSS, and PHP.

How to create Pagination with PHP

PHP