+ -
当前位置:首页 → 问答吧 → flash接收PHP数据的问题

flash接收PHP数据的问题

时间:2010-11-23

来源:互联网

php中输出结果部分代码如下:
while(list($key,$value) = each($user) ) {
    echo "user$key=$value&";
}
运行这个php,输出结果为:
userid=1&userurl=www&username=abc

在flash中,用
txt.text=loader.data.userurl来使txt获得userurl的值即txt的内容应该为www,但是却获取不了,内容显示为
<b>Warning</b>:  Variable passed to each() is not an array or object in <b>D:\get.php</b> on line <b>20</b>
应该怎么解决这个问题?

作者: hihoha   发布时间: 2010-11-23

 很明显是你的PHP没有运行成功

 另外,请不要同一个问题发多个帖子
http://bbs.blueidea.com/thread-3006015-1-1.html

作者: flash023   发布时间: 2010-11-23

可是单独用浏览器运行那个Php是可以输出的呀,但是用flash来输出就不行了
不过我用回那个flash,调另外一个php,可以输出
怎么回事呢?

作者: hihoha   发布时间: 2010-11-23