巧记cvp与血压的关系:请各位高手帮忙看看这段代码怎样显示超连接

来源:百度文库 编辑:高校问答 时间:2024/04/27 19:44:24
If Name = "" Or Email = "" Or Subject = "" Or Memo = "" Then
Response.Write "输入框不能为空白!"
Response.End '不再处理以下的程序
else
response.write"恭喜你的留言提交成功!"&_
"<a HREF="gbook.asp"><font color="#FF9900"

size="2">返回留言</font></a>"
End If

Response.write("<a href="gbook.asp">返回留言</a>")'错误
Response.write("<a href='gbook.asp'>返回留言</a>")'正确
Response.write("<a href=""gbook.asp"">返回留言</a>")'正确

asp 字符串里面双引号要用两个双引号代替,或者在html里面改成单引号也可以。

改成如下:
<%
If Name = "" Or Email = "" Or Subject = "" Or Memo = "" Then
Response.Write "输入框不能为空白!"
Response.End '不再处理以下的程序
else
response.write "恭喜你的留言提交成功!" & "<a HREF=""gbook.asp""><font color=""#FF9900"" size=""2"">返回留言</font></a>"
End If
%>