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

相关文章:

  • 2022-02-28
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
  • 2021-12-05
  • 2021-12-19
猜你喜欢
  • 2021-07-29
  • 2021-04-18
  • 2021-07-19
  • 2021-07-26
  • 2021-08-25
  • 2022-12-23
  • 2021-11-09
相关资源
相似解决方案