Use ajax technology for data post way get real-time transmission and reception mode

Start of the experiment:

1. By using ajax get in html embodiment submit data, stores the data message.txt

2. Submit ajax performed by using data in html post embodiment, stores the data message.txt

html file source.

php file source

Show results

 

3 display message. Txt in the html by ajax

html file source code

php file source

Show results

Published 22 original articles · won praise 0 · Views 726

Guess you like

Origin blog.csdn.net/cldimd/article/details/104663563