0
getURL('http://www.google.com',_blank);

以上可以打开google.com,但是如何从本地主机上的服务器端(PHP)获取数据?

4

1 回答 1

1

我找到了这个教程

<?
$first="this";
$second = "that";

echo "myfirst=$first&mysecond=$second";
exit;
?>

Flash 动作脚本:

var lvSend = new LoadVars();
var lvReceive = new LoadVars();
lvSend.SendAndLoad("www.domain.com/script.php",lvReceive,"POST");

lvReceive.onLoad = function(bSuccess) {
if(bSuccess == true) {
trace(this.myfirst);
trace(this.mysecond);
}
}
于 2010-02-08T10:07:20.340 回答