无为清净楼资源网 Design By www.qnjia.com

remberme.asp

' 用户提交个人信息.

<%

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

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

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

……

' 定义一个名为information的Cookies字典,你可以定义更多,如果你需要.

%>

 

<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> 

标签:
|如何|何在|在A|AS|SP|P中|中恰|恰当|当地|地运|运用|用C|Co|oo|ok|ki|ie|es|s?|?|

无为清净楼资源网 Design By www.qnjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
无为清净楼资源网 Design By www.qnjia.com