源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

如何在ASP中恰当地运用Cookies?

  • 时间:2021-03-11 00:01 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:如何在ASP中恰当地运用Cookies?
[u]remberme.asp

[/u]

' 用户提交个人信息. < response.Cookies("information")("姓名")=request.form("name") response.Cookies("information")("顾客号")=request.form("id") response.Cookies("information")("来自")=request.form("from") …… ' 定义一个名为informationCookies字典,你可以定义更多,如果你需要. >  

<html> <head> <title>星河影动</title> </head> <body> <div align="center"><center> <table border="0" cellspacing="0" width="600" height="86">   <tr>     <td height="65"><p align="center"><font>星河影动之Cookies应用</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>  

[u]welcome.asp

[/u]

' 显示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> 
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部