请问Flash与Asp通信传值的有关问题
请教Flash与Asp通信传值的问题
我想问的是为什么Flash(msg.txt)中获取到的数据为什么是false而不是 "ok "?
有用户名文本框usernameTxt、密码框passwordTxt、登录按钮loginBtn、显示框msg
==================== as ====================
var loginData:LoadVars = new LoadVars();
loginBtn.onRelease = function(){
loginData.user = usernameTxt.text;
loginData.pswd = passwordTxt.text;
loginData.sendAndLoad( "login.asp ",loginData, "get ");
}
loginBtn.onLoad = function(success){
msg.text = success
}
==================== asp ====================
.....
user = Request( "user ")
pswd = Request( "pswd ")
sql = "select * from tbUser where username = ' "&user& " ' and password = ' "pswd " ' "
rs.open conn,1,3
.....
if not rs.eof then
success = "ok "
Response.write( "success= "&success)
end if
------解决方案--------------------
我想问的是为什么Flash(msg.txt)中获取到的数据为什么是false而不是 "ok "?
有用户名文本框usernameTxt、密码框passwordTxt、登录按钮loginBtn、显示框msg
==================== as ====================
var loginData:LoadVars = new LoadVars();
loginBtn.onRelease = function(){
loginData.user = usernameTxt.text;
loginData.pswd = passwordTxt.text;
loginData.sendAndLoad( "login.asp ",loginData, "get ");
}
loginBtn.onLoad = function(success){
msg.text = success
}
==================== asp ====================
.....
user = Request( "user ")
pswd = Request( "pswd ")
sql = "select * from tbUser where username = ' "&user& " ' and password = ' "pswd " ' "
rs.open conn,1,3
.....
if not rs.eof then
success = "ok "
Response.write( "success= "&success)
end if
------解决方案--------------------