Category Archives: PHP

PHP and AJAX Live Search

AJAX can be used for a more user friendly and interactive search. AJAX Live Search In the AJAX example below we will demonstrate a live search, where the server gets search results while the user types. Live search has many benefits compared to traditional searching: Matching results are shown as you type Results narrow as… Read More »

Category: PHP

PHP and AJAX responseXML Example

AJAX can be used to return database information as XML. AJAX Database as XML Example In the AJAX example below we will demonstrate how a web page can fetch information from a MySQL database, convert it to an XML document, and use it to display information in several different places. This example my seem a… Read More »

Category: PHP

PHP and AJAX MySQL Database Example

AJAX can be used for interactive communication with a database. AJAX Database Example In the AJAX example below we will demonstrate how a web page can fetch information from a MySQL database using AJAX technology. Select a Name in the Box Below Top of Form Select a User: Peter Griffin Lois Griffin Joseph Swanson Glenn… Read More »

Category: PHP

PHP and AJAX XML Example

AJAX can be used for interactive communication with an XML file. AJAX XML Example In the AJAX example below we will demonstrate how a web page can fetch information from an XML file using AJAX technology. Select a CD in the Box Below Top of Form Select a CD: Bob Dylan Bee Gees Cat Stevens… Read More »

Category: PHP

PHP and AJAX Suggest

AJAX Suggest In the AJAX example below we will demonstrate how a web page can communicate with a web server online as a user enters data into a web form. Type a Name in the Box Below Top of Form First Name: Bottom of Form Suggestions: This example consists of three pages: a simple HTML… Read More »

Category: PHP

AJAX XMLHttpRequest

The XMLHttpRequest object makes AJAX possible. The XMLHttpRequest The XMLHttpRequest object is the key to AJAX. It has been available ever since Internet Explorer 5.5 was released in July 2000, but not fully discovered before people started to talk about AJAX and Web 2.0 in 2005. Creating An XMLHttpRequest Object Different browsers use different methods… Read More »

Category: PHP

AJAX Introduction

AJAX = Asynchronous JavaScript And XML AJAX is an acronym for Asynchronous JavaScript And XML. AJAX is not a new programming language, but simply a new technique for creating better, faster, and more interactive web applications. AJAX uses JavaScript to send and receive data between a web browser and a web server. The AJAX technique… Read More »

Category: PHP

PHP SimpleXML

Simple XML handles the most common XML tasks and leaves the rest for other extensions. What is SimpleXML? SimpleXML is new in PHP 5. It is an easy way of getting an element’s attributes and text, if you know the XML document’s layout. Compared to DOM or the Expat parser, SimpleXML just takes a few… Read More »

Category: PHP

PHP XML DOM

The built-in DOM parser makes it possible to process XML documents in PHP. What is DOM? The W3C DOM provides a standard set of objects for HTML and XML documents, and a standard interface for accessing and manipulating them. The W3C DOM is separated into different parts (Core, XML, and HTML) and different levels (DOM… Read More »

Category: PHP

PHP XML Expat Parser

The built-in Expat parser makes it possible to process XML documents in PHP. What is XML? XML is used to describe data and to focus on what data is. An XML file describes the structure of the data. In XML, no tags are predefined. You must define your own tags. What is Expat? To read… Read More »

Category: PHP