求助,如何将连接地址中的变量进行参数化
用户登录后,会生成一个userid,点击其他的页面时url中会出现对应的userid,对登录的用户进行了参数化,实际情况中,点击其他的页面时userid也应该对应变,那怎么能在url中动态的去取userid的值呢。web_submit_data("Login.aspx_2",
"Action=http://fxldxm.2011.teacher.com.cn:8080/feixueli2011Admin/Login/Login.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://fxldxm.2011.teacher.com.cn:8080/feixueli2011Admin/Login/Login.aspx",
"Snapshot=t32.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState3}", ENDITEM,
"Name=txtUserName", "Value={newparam}", ENDITEM,
"Name=txtPassWord", "Value=123321", ENDITEM,
"Name=txtCode", "Value=2669", ENDITEM,
"Name=ClientScreenWidth", "Value=1104", ENDITEM,
"Name=ImgbtnLogin.x", "Value=49", ENDITEM,
"Name=ImgbtnLogin.y", "Value=15", ENDITEM,
LAST);
将txtUserName进行了参数化,点击个人的工作室,下面的"URL=http://fxldxm.2011.teacher.com.cn:8080/IndexPage/StudentIndex.aspx?UserID=17729"中的userid怎么给动态取值呢????请各位帮忙
web_url("个人研修工作室",
"URL=http://fxldxm.2011.teacher.com.cn:8080/IndexPage/StudentIndex.aspx?UserID=17729",
"Resource=0",
"RecContentType=text/html",
"Referer=http://fxldxm.2011.teacher.com.cn:8080/feixueli2011Admin/Main.aspx",
"Snapshot=t53.inf",
"Mode=HTTP",
LAST); 从其他的帖子中见过参数化可以用sql查询数据库的方式,这个不知道行不行,如果行的话怎么弄呢??我没用过。 Action.c(407): web_submit_data("UserRegister2.aspx") highest severity level was "ERROR", 0 body bytes, 0 header bytes
能否告知是什么原因呀 要看你要取的这个ID是从哪里来的
页:
[1]