当前位置:编程学习 > VB >>

asp中request出现异常

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<%
request("username")
response.Write "坐"&username&"右"
%>
</body>
</html>


这是页面代码,假设页面名称是aa.asp,在浏览器运行的时候,在aa.asp后面加上?username=1111,也就是aa.asp?username=1111时,页面上没有把参数username的值显示在页面上面... --------------------编程问答-------------------- <%
   username= request("username")
    response.Write "坐"&username&"右"
%> --------------------编程问答-------------------- 原来如此,谢谢.. --------------------编程问答-------------------- 20分也舍不得?
补充:VB ,  COM/DCOM/COM+
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,