打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
如何在ASP中恰当地运用Cookies?
userphoto

2012.09.11

关注

' 用户提交个人信息

<

response.cookies("information")("姓名")=request.form("name")

response.cookies("information")("顾客号")=request.form("id")

response.cookies("information")("来自")=request.form("from")

……

' 定义一个名为informationCookies字典,你可以定义更多,如果你需要

>

 

<html>

<head>

<title>25175</title>

</head>

<body>

<div align="center"><center>

<table border="0" cellspacing="0" width="600" height="86">

  <tr>

    <td height="65"><p align="center"><font>25175Cookies应用</font></td>

  </tr>

  <tr>

    <td align="center" height="62"><form method="post" action="remberme.asp">

<p><font>   

姓名:  <input type="text" name="name" size="20">   <br>

      顾客号: <input type="text" name="id" size="20">   <br>

来自: <input type="text" name="nation" size="20">   

</font><br>

<input type="submit" value="我想查询">  

<input type="reset" value="重写">

   </p>

    </form>

    </td>

  </tr>

</table>

</center></div>

</body>

</html>

 

welcome.asp

' 显示Cookies中的内容

<html>

<head>

<title>Cookies Demo</title>

</head>

<body>

姓名

<=request.cookies("information")("name")>

<p>

顾客号

<=request.cookies("information")("id")>

<p>

来自

<=request.cookies("information")("from")>

</body>

</html> 



本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
JSP探针V0.04-.(源代码)
ASP动态网站开发教程(第二版)习题答案
ASP中页面加密权限访问的几种方法
ASP编程入门进阶
游子教你做音画贴
刷流量和点击量的代码
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服