作者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