留言版发送数据问题
今天尝试做一个PHP连接数据库的FLASH留言版,看了一天的教程,自己网上下了一个简单的PHP留言程序,但用FLASH测试的时候,文本框内输入内容后,发送到数据库中,不仅发送了输入的内容,还把文本格式的代码都发送到了数据库,请问是不是在FLASH中哪的语言没有写对.
RELEASE的代码是
on (release) {
if (name eq "" or name eq "yourname") {
txt_out = "Please type your name";
gotoAndStop("sign");
} else if (comment eq "") {
txt_out = "Please leave comment !";
gotoAndStop("sign");
} else if (comment eq "ERROR!" or comment eq "ERROR!" or comment eq "ERROR!" or comment eq "fuck" or comment eq "Fucker" or comment eq "Suck" or comment eq "suck" or comment eq "Shit" or comment eq "shit" or comment eq "Sau" or comment eq "Bitch" or comment eq "bitch" or comment eq "fucker" or comment eq "Fuck") {
txt_out = "Incorrect comment!";
gotoAndStop("sign");
} else {
txt_out = "please wait...";
eof = "false";
todo = "sign";
loadVariables("coolbook.php", receiveData, "POST");
play();
}
}
[ 本帖最后由 weweloo 于 2008-6-24 23:49 编辑 ]