17 |
18 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Ajax-HTML-CSS-PHP-Implementation
2 | # 1. PHP
3 | The PHP Hypertext Preprocessor (PHP) is a programming language that allows web
4 | developers to create dynamic content that interacts with databases. PHP is basically used for
5 | developing web based software applications.
6 | PHP has a total of eight data types which we use to construct our variables −
7 | Integers − are whole numbers, without a decimal point, like 4195.
8 | Doubles − are floating-point numbers, like 3.14159 or 49.1.
9 | Booleans − have only two possible values either true or false.
10 | NULL − is a special type that only has one value: NULL.
11 | Strings − are sequences of characters, like 'PHP supports string operations.'
12 | Arrays − are named and indexed collections of other values.
13 | Objects − are instances of programmer-defined classes, which can package up both
14 | other kinds of values and functions that are specific to the class.
15 | Resources − are special variables that hold references to resources external to PHP
16 | # PHP MySQL Connectivity
17 | https://www.w3schools.com/php/php_mysql_connect.asp
18 |
19 | # 2. AJAX
20 | AJAX stands for Asynchronous JavaScript and XML. AJAX is a new technique for creating
21 | better, faster, and more interactive web applications with the help of XML, HTML, CSS, and
22 | Java Script.
23 | Ajax uses XHTML for content, CSS for presentation, along with Document Object
24 | Model and JavaScript for dynamic content display.
25 | Conventional web applications transmit information to and from the sever using
26 | synchronous requests. It means you fill out a form, hit submit, and get directed to a
27 | new page with new information from the server.
28 | With AJAX, when you hit submit, JavaScript will make a request to the server,
29 | interpret the results, and update the current screen. In the purest sense, the user would
30 | never know that anything was even transmitted to the server.
31 | XML is commonly used as the format for receiving server data, although any format,
32 | including plain text, can be used.
33 | AJAX is a web browser technology independent of web server software.
34 | A user can continue to use the application while the client program requests
35 | information from the server in the background.
36 | Intuitive and natural user interaction. Clicking is not required, mouse movement is a
37 | sufficient event trigger.
38 | Data-driven as opposed to page-driven.
39 |
40 | # The XMLHttpRequest Object
41 | All modern browsers support the XMLHttpRequest object. The XMLHttpRequest object can
42 | be used to exchange data with a server behind the scenes. This means that it is possible to
43 | update parts of a web page, without reloading the whole page.
44 | var xhttp = new XMLHttpRequest();
45 | Send a Request To a Server
46 | To send a request to a server, we use the open() and send() methods of the XMLHttpRequest
47 | object:
48 | xhttp.open("GET", "ajax_info.txt", true);
49 | xhttp.send();
50 | # Property Description
51 | onreadystatechange Defines a function to be called when the readyState property changes
52 | readyState Holds the status of the XMLHttpRequest.
53 | If readyState=
54 | 0: request not initialized
55 | 1: server connection established
56 | 2: request received
57 | 3: processing request
58 | 4: request finished and response is ready
59 |
60 |
--------------------------------------------------------------------------------