20th
2007,11
如何才能在Swf上的输入文本元件里填写数据,后点击Button,传递到Asp页面尼?
下面是Cngothic今天查阅资料整理以下几行代码!
FLASH 部分:
按钮元件名称:cngothic_button
文本框元件名称:cngothic_username
As 代码:
_root.cngothic_button.onRelease = function() {
if (_root.cngothic_username.text != “”) {
names = _root.cngothic_username.text;
loadVariablesNum(”write.asp”, 0, “POST”);
}
}
Asp 代码:
cngothic_username = Request.Form(”cngothic_username”)
ASP文件里直接用Request来获取。SWF传递过来的值!
Name: Cngothic 































11 21st, 2007 at 6:11 am
填写汉字提交入库后显示为乱码。
在获取names值的ASP页面加上
< %@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
乱码依然存在。
大P蚊发来两句AS不明意思号称解决乱码问题。哈哈
System.useCodepage = true;
mytext.html=true;
希望大P蚊能早些把二百张图片处理完。