Principle: 1. Enter the user name 2. Trigger the Control 3. Obtain the filled content 4. Ajax transmission 5. query the database 6. Return result 7. Several types of onblur events triggered by DOM response to the page occurs when the object loses its focus. The onchange event occurs when the domain content changes. The onclick event occurs when the object is clicked. Onfocus
Principle: 1. Enter the user name 2. Trigger the Control 3. Obtain the filled content 4. Ajax transmission 5. query the database 6. Return result 7. Several types of onblur events triggered by DOM response to the page occurs when the object loses its focus. The onchange event occurs when the domain content changes. The onclick event occurs when the object is clicked. Onfocus
Principle:
1. Enter the user name
2. Trigger controls
3. Obtain the entered content
4. Ajax Transmission
5. query the database
6. Return results
7. DOM response to page
Page trigger types
The onblur event occurs when the object loses focus.
The onchange event occurs when the domain content changes.
The onclick event occurs when the object is clicked.
The onfocus event occurs when the object obtains the focus.
The onkeydown event occurs when you press a keyboard button.
The onkeypress event occurs when the keyboard key is pressed and a key is released.
The onkeyup event occurs when the keyboard button is released.
The onmousedown event occurs when the mouse is pressed.
The onmousemove event occurs when the mouse pointer moves.
The onmouseout event occurs when the mouse pointer is removed from the specified object.
The onmouseup event occurs when the mouse button is released.
Get the data content in the form
Js:
document.myform.user.value
Implementation Code: index. php