| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 849 人关注过本帖
标题:关于COOKIE语句的问题
只看楼主 加入收藏
sirius0
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2008-2-21
收藏
 问题点数:0 回复次数:0 
关于COOKIE语句的问题
<table width="97%" height="80" border="0" cellpadding="4" cellspacing="0" bordercolor="#666666">
  <tr>
    <td width="255" height="28"><span class="STYLE2">cookies有效期</span></td>
    <td width="721"><span class="STYLE1">
      <label>
      <input name="cookietime" type="radio" value="86400" checked="checked" />
一天</label>
      <label>
      <input type="radio" name="cookietime" value="2592000" />
一个月</label>
      <label>
      <input type="radio" name="cookietime" value="31104000" />
一年</label>
      <label>
      <input type="radio" name="cookietime" value="3600" />
一小时</label>
      <label>
      <input type="radio" name="cookietime" value="60" />
一分钟</label>
      <input name="cookietime" type="radio" value="0" />
浏览器进程</span></td>
  </tr>
  <tr>
    <td height="28"><p><span class="STYLE2">
      <label>
 用户名</label>
      <label></label>
    </span></p></td>
    <td><p><span class="STYLE1">
      <input name="username" type="text" id="username" />
    </span><span class="STYLE1">立刻注册 </span></p></td>
  </tr>
  <tr>
    <td><span class="STYLE2">密码 </span></td>
    <td><span class="STYLE1">
      <label>
      <input name="password" type="text" id="password" value="" />
      </label>
忘记密码 </span></td>
  </tr>
</table>
<table width="97%" border="0" cellpadding="4">
  <tr>
    <td height="51"><form id="form1" name="form1" method="post" action="">
      <div align="center">
        <input type="submit" name="Submit" value="提交" />
        </div>
    </form>
    </td>
  </tr>
</table>
<p>&nbsp;</p>
<p>

  <%

   response.Cookies("用户")("名字")= request.Form("username")
   response.Cookies("用户")("密码")= request.Form("password")

  %>

----------------------------------------------------------
下面的代码为什么读不出COOKIE的内容呢?
<%
   Response.Write("用户名: "&request.Cookies("用户")("名字") &"<br>")
   Response.Write("密码:" &request.Cookies("用户")("密码")&"<br>")

%>
搜索更多相关主题的帖子: COOKIE label 语句 span 
2008-04-02 17:14
快速回复:关于COOKIE语句的问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.026372 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved