0

我有一段 ASP Classic 代码,它不是响应写入我的信息,而是返回“true”

这是相关的行:

response.write "<a href='search.htm?supplier_name= & request.querystring('supplier_name') & "&aircraft_type=" & request.querystring('aircraft_type') & "&state=" & request.querystring('state') & "&order=state'>State</a>"

我相信这个问题与本节有关:

& "&order=state'>State</a>"

完整的 ASP 代码:

<%
if request.querystring("order") = "state" then 
response.write("State")
else
response.write "<a href='search.htm?supplier_name= & request.querystring('supplier_name') & "&aircraft_type=" & request.querystring('aircraft_type') & "&state=" & request.querystring('state') & "&order=state'>State</a>"
end if
%>
4

1 回答 1

2

后缺少双引号supplier_name=

response.write "<a href='search.htm?supplier_name=" & request.querystring('supplier_name') & "&aircraft_type=" & request.querystring('aircraft_type') & "&state=" & request.querystring('state') & "&order=state'>State</a>"
于 2013-02-04T00:37:32.423 回答