这小段ASP代码中怎么能得到数据库表名?

Dickson 2005-02-07 01:22:55
没有经典的CONNECTION啊。。。只有XML。。。。
如果得不到,会在其他ASP页中有么?
谢了!
代码如下:





//提交到服务器

function save(fm){
if(!CheckLogin(fm)) return
var acturl
var xmlstr = ""
var xmlobj = new ActiveXObject("Microsoft.XMLDOM.1.0")
var httpobj = new ActiveXObject("Microsoft.XMLHTTP.1")
var eList, E, Msg
//SetDisabled(fm, true);
//acturl = GetAction(fm.action);
//xmlstr = '<?xml version="1.0" encoding="gb2312"?>'
//xmlstr = xmlstr + GetFormFields(fm);
xmlstr = '<record><clino>' + fm.clino.value + '</clino><password>' + fm.password.value + '</password>' + xmlstr + '</record>';
//if(!window.confirm(xmlstr)) return
xmlobj.async=false;
//alert(xmlstr)
xmlobj.loadXML(xmlstr);

httpobj.open("POST", "/template/Tpl_public/checkLogin.asp", false);
httpobj.send(xmlobj);
var a1 = httpobj.responseText.indexOf("<?xml");
var a2 = httpobj.responseText.length
if(!xmlobj.loadXML(httpobj.responseText.substring(a1,a2))){
alert(httpobj.responseText)
return false;
}
E = xmlobj.selectSingleNode("result/err").text ;
Msg = xmlobj.selectSingleNode("result/msg").text ;
//sqlstr=xmlobj.selectSingleNode("result/sqlstr").text ;
//alert(unescape(sqlstr));
Msg = unescape(Msg);
//alert(E);
//SetDisabled(fm, false);
if(E=='0'){
//if(oprFlag=='upt'){
//alert(Msg);
var d=window.open("/member/main.asp","nihao");
d.focus();
//window.location.href="/member/main.asp"
self.close();
//span_work.innerHTML='<table width=\"100%\" height=\"100%\"><tr><td width=\"100%\" height=\"100%\" align=\"center\"><font size=\"6\"><a href=\"/template/template_bbs_1.asp\">你的留言已经成功保存!</a></font></td></tr></table>'
return
//self.close() //sussecc save
//if(Msg!='') alert(Msg);
//}else{
//document.forms[0].grNO.readOnly = true;
//grNO = document.forms[0].grNO.value;
//window.mylink.content = "GetDetail.asp?flt=grNO='" + grNO + "'";
//oprFlag = 'upt';
//SetDisabled(document.forms[1],false);
//if(Msg!='') alert(Msg);

//if(!window.confirm(Msg + '\n现在需要录入明细吗?')) return

//detail.add.click();
//}
//}else{

}
alert(Msg);
}
...全文
80 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
httpobj.open("POST", "/template/Tpl_public/checkLogin.asp", false);
dsclub 2005-02-07
  • 打赏
  • 举报
回复
checkLogin.asp

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧