Posts

Iimplement a price range slider using JavaScript

Image
    How to implement a price range slider using JavaScript's XMLHttpRequest Object.     The range slider can be useful for allowing users to select a specific price range when browsing products. Frequently you will see using this widget in several  sites, especially in ecommerce websites. Today, I will show how to use this price slider with JavaScript and jQuery and PHP.   This example using mobile UI Two Point range sliders, where you will see start and end ranges  in a single slider.   Here is a code example. There are  two files, one is PHP file, which provides a backend code, it receives a range values and returns them back to frontend  when user changes the range values.   Follow the steps given below Code Example: Step-1 create a PHP file with given name  current_prices.php and copy the given code in it and save. It will receive max and min values from the form.   current_prices.php   <?php ...

Using Simple XML Parser in PHP

Image
How to use Simple XML Parser in PHP Simple XML is an extension that allows us to easily manipulate and get XML data using PHP. From PHP 5, It is a part of the PHP core. Before going to learn about Simple XML Parser in PHP .  Let's have some brief introduction of XML. What is XML? The Extensible Markup Language (XML) is a simple text-based format for porting structured information like documents, data, books, transactions, invoices, configuration  and much more from one end to another both locally and across networks. It was derived from an older standard format called SGML, in order to be more suitable for modern days Web use. XML is similar to HTML. It uses opening and closing tags. Unlike HTML, XML allows users to define their own tags. Go toTOP What is XML Used For? XML is one of the most widely-used formats for sharing structured information between programs, between people. Types of XML Tree based Event based XML Parse Extensions:  The following XML parsers are a...

Creating a new PDF by Merging PDF documents using TCPDF

Image
Merging two PDFs in PHP What is PDF? The Portable Document Format. PDF stands for "Portable Document Format". Essentially, the format is used when you need to save files that cannot be modified but still need to be easily shared and printed. PDF is one of the most commonly used file types around. PDFs generally contain shareable data, such as text or photo documents etc., and are accessible to anyone who has a computer or smartphone. Unlike a Word file, which requires Microsoft Word to view or edit, most browsers will open a PDF. How to merge PDFs? You can merge several documents into one. In PHP, you have a library called TCPDF which allows you to combine one or more PDF documents to one single document. In this article, we will create a new PDF by Merging PDF documents using TCPDF. Download the PDFMerger-tcpdf.zip here. Unzip it and copy it to the PHP server. Copy the PDF files into the same folder that you want to combine. Open the file: merge-pdf-example.php Provide...