????? ????? ?????? ??????? ?? ???? ????? ??? ????? ???????? GET ? POST ?? ????? ?????? ??????

?????? ????????? ?????? ?????????
???? ???????: 300104 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

?? ???? ?? ????????? ?????? ???? ???? ?? ????? ??? ????? ?????? ?????? (ASP) ?????? ???????? ?? ???? ????? ??? ??? ????????. ????? ??? ??????? ??? ??????? ???? ????? ??? ????? ?????? ????. ??? ????? ???????? ?????: ??? ?????? ??????? POST ??????? ????? ????? GET. ?????? ?? ???? ??????? ???? ?? ??????? ????? ??? ????? ?? ???? ?? ??? ??????? ??? ???? ????? ????? ??? ???????.

??????: ??? ?? ??? ??????? ??????? ?????? ??? ?? ?? ????? ?? ???? ????? .asp ??? ??? ??????? ????? ?????? ??? ??????? ?????? ?? ???? ?????? ?????? ??? ????? ????????. ???? ?? ???? ??????? ?????? ????? .htm ?? .asp.

??????? ????? POST

??? ??????? ??????? POST ????? ????? ?????? HTML ?? ????? ??? ?????? ??????? ?? ????? ???????. ?????? ????? ???? ??????? ???????:
  1. ????? ???? ????? .htm ? ??? Gatherdata_post.htm. ?????? ????? ?? Visual InterDev ??????? 6.0 ???? ??? ?????? ?????? ??? ???? ??????? ?? "?????? ????????" ???? ??? ????? ? ???? ??? ???? HTML, ????? Gatherdata_post.htm ???? ?????? ? ?? ?? ???? ??? ???.
  2. ?? ???? ???????? ???????? ??????? ?? ?????? ???????: ??????: ????? ??? ??? ?????? ????????? ???????? ?????????? ???? ???????? InterDev ??? ????? ?? ????? ?????? ??? ??? ??? ???????? ???????? ?? ??????. ????? ????? ???????? ??????.
    <html>
    <head>
    </head>
    <body>
    <FORM action="RetrieveData_Post.asp" id=form1 method=post name=form1>
    	First Name:
    	<br>
    	<INPUT id="txtFirstName" name="txtFirstName" >
    	<br>
    	Last Name:
    	<br>
    	<INPUT id="txtLastName" name="txtLastName" >
    	<br>
    	<INPUT type="submit" value="Submit"> 
    </FORM>
    </body>
    </html>
    					
  3. ??? ??????. ?????? ????? ???? ??? ??? Gatherdata_post.htm ??????? ??? ?? IDE InterDev ?????.
  4. ????? ???? ??? ???? Retrievedata_post.asp. ?? ???? ???????? ???????? ??????? ?? ?????? ?? ??? ??????:
    <%@ Language=VBScript %>
    <html>
    <head>
    </head>
    <body>
    <%
    Response.Write("First Name: " & Request.Form("txtFirstName") & "<br>")
    Response.Write("Last Name: " & Request.Form("txtLastName") & "<br>")
    %>
    </body>
    </html>
    
    					
  5. ????? Gatherdata_post.htm ?????? ??? ?????? ?????? ??? ?????? ????? ??? ?? ????????. ???? ??? ??? ??????? ?????? ???????? ?? ???? ??? ?????. ???? ?? ???????? ???? ??? ???????? ?? Getdata_post.htm ?? ????? ??? HTTP POST ??? ???? Retrievedata_post.asp ???????? ???????? ?????? Request.Form.

???????? ????? GET

??? ??????? ??????? GET ????? ????? ?????? HTML ?? ????? ??? ?????? ??????? ?? ????? ??????? ?????? ???? ??????? POST ??????? ??????. ??? ???? ?????? ??? ?? ????? ????? ?? QueryString. ??????? ??????? ???? ??? ???????? ??? ??????? GET ????? ?? POST ?? ?? ????? ??????? ?? URL.

???????? ????? GET ???? ??????? ???????:
  1. ????? ???? ????? .htm ? ??? Gatherdata_get.htm. ?????? ????? ?? Visual InterDev ??????? 6.0 ???? ??? ?????? ?????? ??? ???? ??????? ?? "?????? ????????" ???? ??? ????? ? ???? ??? ???? HTML, ????? Gatherdata_get.htm ???? ?????? ? ?? ?? ???? ??? ???.
  2. ?? ???? ???????? ???????? ??????? ?? ?????? ???????: ??????: ????? ??? ??? ?????? ????????? ???????? ?????????? ???? ???????? InterDev ??? ????? ?? ????? ?????? ??? ??? ??? ???????? ???????? ?? ??????. ????? ????? ???????? ??????.
    <html>
    <head>
    </head>
    <body>
    <FORM action="RetrieveData_Get.asp" id=form1 method=GET name=form1>
    	First Name:
    	<br>
    	<INPUT id="txtFirstName" name="txtFirstName" >
    	<br>
    	Last Name:
    	<br>
    	<INPUT id="txtLastName" name="txtLastName" >
    	<br>
    	<INPUT type="submit" value="Submit" id=submit1 name=submit1> 
    </FORM>
    </body>
    </html>
    					
  3. ??? ??????. ?????? ????? ???? ??? ??? Gatherdata_get.htm ??????? ??? ?? IDE InterDev ?????.
  4. ????? ???? ??? ???? Retrievedata_get.asp. ?? ???? ???????? ???????? ??????? ?? ?????? ?? ??? ??????:
    <%@ Language=VBScript %>
    <html>
    <head>
    </head>
    <body>
    <%
    Response.Write("First Name: " & Request.QueryString("txtFirstName") & "<br>")
    Response.Write("Last Name: " & Request.QueryString("txtLastName") & "<br>")
    %>
    </body>
    </html>
    					
  5. ????? Gatherdata_get.htm ?????? ??? ?????? ?????? ??? ?????? ????? ??? ?? ????????. ???? ??? ??? ??????? ?????? ???????? ?? ???? ??? ?????. ???? ??? ??? ????? ???????? ???? ?? ??????? ?? Getdata_get.htm ???? GET ??? ???? Retrievedata_get.asp ???????? ???????? ?????? Request.QueryString. ??? ????? ???? ??? ???????? QueryString ??? ??? ????? ???????? ???????? ??? ???? ASP ??????? ??? ??????? GET ??????? ????? ????? ??????? ?????? ????? ??? ??????? ???????? ??? ????? POST.

?????

?????? ??? ??????? ??????? ???? ??? ???? ????????? ????????? ??????? ?? "????? ??????? ?? Microsoft:
254742IIS: ASP ????? ?? ?????? ??????? HTTP ??????? ?????? ???
208427INFO: URL ???? ??? ?? 2,083 ?????? ?? Internet Explorer
254786PRB: ?????? ????? ?????????

???????

???? ???????: 300104 - ????? ??? ??????: 13/????? ??????/1425 - ??????: 1.1
????? ???
  • Microsoft Active Server Pages 4.0
????? ??????: 
kbmt kbaspobj kbcodesnippet kbhowto kbhowtomaster kbsample kbscript KB300104 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????300104
????? ??????? ?? ????? ???? ?? ????? ???????
?? ????? ????? ?????? ???? ???? ???? ??? ??????? ??? ?? ? ?? ??? ??????? Microsoft ??? ????? ??? ??????? ????? ?????? ?????

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com