Ajax + PHP check username or email (3)

Source: Internet
Author: User
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
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.