asp get方式获取信息

asp get方式获取信息,第1张

<%

if requestquerystring("info1")<> "" then

responseWrite(requestquerystring("info1"))

end if

if requestquerystring("info2") <>"" then

responseWrite(requestquerystring("info2"))

end if

if requestquerystring("info3")<> "" then

responseWrite(requestquerystring("info3"))

end if

if requestquerystring("info4")<> "" then

responseWrite(requestquerystring("info4"))

end if

%>

真正的原因:

1、<%@ language="Javascript"%> 这行去掉!

2、var 不能使用在ASP文件的<%%>内,应去掉!

3、b=request("yourpw")中括号的右侧符号不对应是英文字符下的括号

4、responsewrite(); 中“;”应去掉。

修改完,就可以看到了。

<%

Set rs=ServerCreateObject("ADODBRecordSet")

rsopen "select newsid,newsname,viewnum from news order by adddate desc",conn,1,3

if rseof then

responseWrite("暂时没有记录")

end if

%>

以上就是关于asp get方式获取信息全部的内容,包括:asp get方式获取信息、ASP获取表单信息、asp信息提取等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/9547275.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-29
下一篇2023-04-29

发表评论

登录后才能评论

评论列表(0条)

    保存