Talking about Web Data Interaction (1)
Chasing the wind
The C / S mode and B / S have a bit a bit thereafter, and the B / S mode needs to consider how data is submitted from the client to the server, and the data returns to the client, these is B / S The model is unique, before last year, develop B / S mode procedures, I use form to interact data, when I see XML, I found XML is a good winter winter, there are many advantages, there is certain of course can't Exclusive, I want to achieve the network to turn the network over the Internet. Hey, a piece of brick came up. Oh, nonsense, let's enter the topic below.
The B / S mode is divided into server-side and clients, client accepts user requests, clients to apply services to the application service, apply services from database services, calculate data, and submit the results to the client, The client is presented to the user. In this way, we will see the data from the customer to the server, and then return to the client, and the result is displayed by the client software (such as IE).
(As an example of ASP, other languages are like.)
1. FORM way
The form method is the most basic way to submit data to the server.
TEST.ASP file code:
<% @ Language = VBScript%>
<%
Response.expires = -1
Response.Charset = "UTF-8"
Session.codepage = "65001"
%>