ajax form front and back form submission data transmission

We in the actual development process must be there before and after the data sets interactively and now there are only two data transmission method is a form submission form and ajax

Taiwan before and after the data transfer, it is very important, there is no front and back page of a data exchange, then it was only just a static page

Before we open the file, double-click all the way through the file protocol to open a local file

file:///C:/Users/John/Desktop/ajax1/1.html 

Like this open file on the local server is not why I want to use a server-side analog xammp APP

Data transmission xammp so that they can learn better integrated front and back of the apache server, mysql database, php server-side language, integrated software

How to use the software xammp

After the installation is complete

Path xammp service storage: htdocs file xammp installation directory folder, delete all the files inside, so if you can prevent your files are confused.

In the file you want to open into the htdocs folder

The next step then open the software

Click Config button to enter the text to set the port number at the click of a button Apache

Red mark as far as possible to set the port number is set to more than 30,004 the number of bits so high success rate

Afraid that some ports are occupied by other software that led to failure

After the success of clicks are set Starl button to generate environmental success

Here I set the port number is 8888

Took to try to use the method to enter the port number of the

Note that the web link here to enter

http: // ip address: port number / path of the file where I set the port number is 8888

A look into our own files in the htdocs folder

Note that the browser only recognizes html file as above CSS file and js file browser is not removed to identify the

In the build a good environment after the end of the service can learn from the next station before and after the data transmission

I said above there are two ways

One is from form submission

One is ajax

Guess you like

Origin www.cnblogs.com/jiangquhan/p/12458455.html