PHP
Hindi Songs
(Move to ...)
Hindi Songs
▼
Thursday, July 9, 2009
Example explained - The PHP Page
›
The PHP page called by the JavaScript, is called "getuser.php". The PHP script runs an SQL query against a MySQL database, and ret...
The showUser() Function
›
When a person in the drop-down box is selected, the showUser() function executes the following: 1. Calls the GetXmlHttpObject() funct...
Example explained - The JavaScript code
›
This is the JavaScript code stored in the file "selectuser.js": var xmlhttp; function showUser(str) { xmlhttp=GetXmlHttpObject(); ...
Example explained - The HTML page
›
The HTML page contains a link to an external JavaScript, an HTML form, and a div element: Select a User: Peter Griffin Lois Griffin Glenn Qu...
Example explained - The MySQL Database
›
The database table we use in this example looks like this: id FirstName LastName Age Hometown Job 1 Peter Griffin 41 Quahog Brewery 2 Lois G...
›
Home
View web version