请大家帮忙看下这端代码,多谢指教!
这是我在DW MX制作的,作用是显示注册成功的提示页面,在dw和frontpage中能正常显示,但在ie6.0中看却显示代码,请问这是什么问题呢?
<% Response.Buffer = ture %>
<! - -#include file="DBconn.asp" - ->
<% 'UseraddSucc.asp
'以用户名建立查询记录集
sql ="select * from 用户表 where 用户名='"& Request ("name")&"'"
Set RSobj=ConnObj.Execute(sql)
'检查是否重名,否则读取所有信息,向用户表中添加新用户记录
if not RSobj.Bof or RSobj.Eof Then
response.write"你所输入的姓名已经被别人使用,请用别的名称。"
Response.write"<a href ='Useradd.asp'>重新注册</a>"
end if
if RSobj.bof or RSobj.eof Then
response.Clear
RSobj.Close
%>
<! -- #include file= "DBconn.asp"-->
<%
name=Request.Form("name")
pass=Request.form("pass")
mail=Request.form("mail")
if mail=""then
mail=" "
end if
DBstring="'" & name &_
"','"& pass &_
"','"& mail & "'"
intoDB ="insert into 用户表(用户名,密码,电子邮箱)values("& DBstring
& ")"
ConnObj.Execute(intoDB)
%>
<html>
<head> <title> 网上论坛--新用户注册成功!</title></head>
<body link ="#ffffff" vlink="#ffffff">
<table width="395"bgcolor ="#008080"align="center"height="70">
<td height="66">
<p align ="center"><font color ="#ffff00">注册成功!!!</font>
<a href="View.asp? No=<% =Num1%>">登录论坛</a>
</td>
</table>
<%end if%>
</body>
</html>