web tools rank checker

domain .cn
.net .cn .com.cn
你正在阅览 :: 简体中文:: 学习 ASP SQL VB HTML code

学习 .ASP SQL HTML XML CSS JAVA Perl code study
English Chinese_Traditional Chinese_Simplified

你正在阅览 :: 简体中文 Chinese_Simplified

学习.主题:
首页
ASP
. Active-Server-Flash
. Array
. Connection
. Count
. Counter
. Distinct
. Email
. File
. Folder
. Function
. GetSQLserver
. Header
. mySQL
. Record
. Recordset
. Request
. Response
. Server
. Server-CreateObject
. ServerVariables
»all-HTTP-headers
»PATH_INFO
»Query-String
. Session
. Special-Symbols
. String
. Sub
. Time
CSS
Ecommerce
HTML
InternetProtocol
JAVA
Microsoft
Robots
SearchEngine
SQL
SQLserver
VBscript
XML

SiteMap

3w....学习.教学 > ASP > servervariables » query-string

3w learning

servervariables >
query-string

Title:

ServerVariables("Query_String")


网址后面的参数(不含问号)
Description:

QueryString= Request.ServerVariables("Query_String") if the URL has a "?" question mark included the the Len(QueryString)>0 Tips: security to prevent some one to hake your submit form Ezer suggest add a check point to check the length of :; Len(QueryString)


取出"?"之后的字符串

所以同理也可测其自串的长度
Example Code:

http://3w.ezer.com/search/index.asp?dir1=&page=2&q=server <% Query_String="http://3w.ezer.com/search/index.asp? dir1=&page=2&q=server" QueryString= Request.ServerVariables("Query_String") response.write QueryString %> -----------------Tip------------ you may often see URL request like this: http://www.----.com/?aKeyword here (aKeyword) is a quary <% quaryX= Request.ServerVariables("Query_String") %> then you can easy to use the request


技巧:防护你个人的(Submit form)窗体
简单方式以避免黑客玩弄你重要的query
减少非法呼叫与外侵袭击

道理虽是简单, 但仍有很多企业网站轻忽

技巧:可建立直接读取"?"之后的关键词成为
query呼叫送出
Example Result:

dir1=&page=2&q=server


---------- attention :: ----------- the ? (question mark) shall not be included tips: you can see the Len(QueryString)>0 you may avoid hacker to play around your quary by writing this :: <% if Len(QueryString)>0 then response.write "stop hacking me" response.end end if %> However you shall know about how to use (get) and (post) submit form before use it.


注意不含问号
..
...
...

[ 7/27/2008 ]

www learning school add more scripts and tips memo
You are at >>3WS.EZER.COM >> 3WS.EZER.COM/ASP/SERVERVARIABLES/QUERY-STRING.ASP>>ASP
Helpful link:: SEO web tools :: Live PR | SERP checker
back to top Ezer code adding :: Questions ;email