国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 編程設計 > 正文

如何在ASP中恰當地運用Cookies?

2020-06-19 13:51:34
字體:
來源:轉載
供稿:網友

remberme.asp

' 用戶提交個人信息.

<

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>

 

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> 

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 河北省| 阳泉市| 贡嘎县| 福安市| 兴安盟| 上栗县| 眉山市| 灵璧县| 连城县| 兴义市| 清远市| 定远县| 铜鼓县| 厦门市| 天镇县| 玛纳斯县| 景德镇市| 米脂县| 舟山市| 湾仔区| 阳山县| 万山特区| 莱芜市| 南木林县| 大渡口区| 桐庐县| 郸城县| 绵阳市| 合江县| 永仁县| 英德市| 兴化市| 阿瓦提县| 米泉市| 红安县| 威宁| 虎林市| 兴文县| 吉首市| 镇平县| 浦城县|