作者GODSIZE (我要下棋)
看板Flash
标题Re: [问题] 请问有关PHP传值给FLASH
时间Sat Aug 11 12:48:24 2007
还没有解决问题,但有发现一些问题 = =
------
on (release) {
loadVariables("register.php", this, "POST");
status = "";
if (account="") {
//应为뀠account == null,但我不知为何""不行
//要有两个 "="
status = "请填入帐号";
} else if (password="") {
status = "密码不得空白";
status = "确认密码输入错误";
//这样只会出现"确认密码输入错误"
//字串相加可用 +
//应该要两个判断式分开吧
} else if (email="") {
status = "请填入E-mail";
} else {
loadVariables("register.php", this, "POST");
gotoAndStop("loading");
}
}
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.171.104.91
1F:→ GODSIZE:还有 status 和 password 好像是预设变数ㄝ... 08/11 13:11
2F:推 nehunter:不好意思犯了程式狠蠢的错误 08/11 21:54
3F:→ nehunter:status有两个是我把部分程式码删了没改好@@" 08/11 21:55
4F:→ nehunter:用我的方法FLASH似乎是直接去拿.php的内容 08/11 21:56
5F:→ nehunter:而不是透过伺服器 就好像直接拿.txt一样 08/11 21:56
6F:→ nehunter:请问是设定的问题吗? SERVER可以正常的跑阿 囧 08/11 21:56
7F:推 GODSIZE:不清楚...但我有试过 echo "flashtxt=" .$name 可以 08/13 01:37
8F:→ GODSIZE:是用 loadVariables 08/13 01:38