Ajax File Upload with Form Data using PHP


ajax-file-upload-submit-form-data-jquery-php-mysql-codexworld

File upload functionality is the most used feature for the web application. Generally, a form is submitted to upload file in PHP. IF you want to provide a better user interface, jQuery and Ajax can be used to upload file without page refresh. The FormData object compiles a set of key/value pairs to send using XMLHttpRequest. The files can also be sent using FormData by including a file input element in your the form.

Read Full →

Credit Card Validation using jQuery


credit-card-number-validation-jquery-codexworld

Credit card validation is the must-have functionality on the payment form. It helps to validate credit card number and other details before submitting the payment. You can easily implement the credit card validation on the payment form using jQuery. We will create a simple jQuery plugin for credit card number validation. This jQuery plugin detects and validate credit card numbers, and instantly check whether the card is valid.

Read Full →

Convert Array to XML and XML to Array in PHP


convert-array-to-xml-parse-read-file-php-codexworld

XML is used in many ways in the web application. If you're concerned about database size and want to reduce database uses, XML can help you to free the space from the database. Instead of the database you can store the data in the XML file and retrieve data from XML file without connecting to the database. This tutorial shows how to convert PHP associative or multidimensional array to XML and stored in the XML file.

Read Full →

Stripe Payment Gateway Integration in PHP


stripe-payment-gateway-integration-php-api-codexworld

Stripe payment gateway makes it easy to integrate checkout system and collect payment on the website. The Stripe API is a powerful solution to integrate checkout system in the web application to provide a smooth payment experience. If you want to accept credit card payment on your website, Stripe will the best option for that. You can easily integrate checkout system in your PHP-based website.

Read Full →

Pagination in CodeIgniter


codeigniter-create-pagination-links-library-codexworld

Pagination is the most required feature in the web application. Generally, pagination is useful when data is retrieved from the database and listed in the web page. Pagination in data list is mandatory when you need to list the huge data. If your web application built with CodeIgniter framework, it's very easy to implement pagination in the data list. CodeIgniter provides Pagination class to create pagination links for the results set.

Read Full →

How to Embed PDF Document in HTML Web Page


embed-pdf-document-file-in-html-web-page-codexworld

Generally, a hyperlink is used to link a PDF document to display in the browser. HTML anchor link is the easiest way to display a PDF file. But if you want to display PDF document on the web page, PDF file need to be embedded in HTML. The HTML embed tag is the best option to embed PDF document on the web page. Using parameters in URL, you can specify exactly what to display and how to display PDF document.

Read Full →

Live Image Upload, Crop and Resize using jQuery and PHP


live-image-upload-crop-resize-using-jquery-php-codexworld

Cropping image before upload, always a great idea for server space optimization. Crop feature helps to resize the image as per the required size. You can also reduce the web page size and load time by showing the exact size image. If your web application has image upload functionality, image crop and resize are very useful. Use imgAreaSelect plugin to live crop and resize the image using jQuery and PHP.

Read Full →

CodeIgniter RESTful Web Services


codeigniter-rest-api-web-services-tutorial-codexworld

RESTful web service uses HTTP request to GET, PUT, POST and DELETE data across platforms. In present days, RESTful API is an essential component of the web application. When the CodeIgniter application requires communicating with another application, RESTful API is needed to integrate into CodeIgniter. Using RESTful API in CodeIgniter, you can exchange data between different applications.

Read Full →

CodeIgniter CRUD Operations with MySQL


codeigniter-crud-tutorial-add-edit-delete-operations-codexworld

CRUD operations are the most required functionality for every CodeIgniter application. CRUD operations are commonly used to manipulate data in the database. It helps to implement Add, Edit, Update and Delete functionality in CodeIgniter framework. This tutorial will show you how to create a simple CRUD application in CodeIgniter with MySQL to perform create (insert), read (select), update, and delete operations.

Read Full →