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

原文地址:https://www.cnblogs.com/netact/p/2074218.html