ASP学习体会
1,ASP获取表单数据:
a,接收用get 方法传输的数据的写法(从网址):fname=Request.QueryString("fname")
b,表单上的Fname的值,接收用post 方法传输的数据的写法:fname=request.Form("fname")
c, 同时接受get和post 方法传送数据的代码写法:
dim MUName
MUName=Request("MUName")
在同时拥有三种情况变量名相同的时候,优先级如下
Get > Post > Cookies
<input type="radio" name="select" value="a/index.asp">选择1</input>
<% response.redirect(request.from("selects")) %>
2,在cookies中存信息
response.cookies("Numvisits").Expires=date+365
response.cookies("Numvisits")=1
posted on 2011-06-07 12:27 Henry_Wang 阅读(146) 评论(0) 收藏 举报
浙公网安备 33010602011771号