2
我試圖發送array
的數據from Flash to PHP
來發送電子郵件。我想這樣做,因爲每當我的表單網站因客戶選擇而更改時,我必須更改php
頁面。從Flash發送JSON到PHP
我的答案是,我可以發送像這樣的對象數組到PHP?
var message:Array = new Array();
message.push ({field_name:"Name", value:"John Lennon"});
message.push ({field_name:"e-mail", value:"[email protected]"});
message.push ({field_name:"Message", value:"Hello goodbye"});
所以,PHP應recive像一個字符串:
[
{
"field_name":"Name",
"value":"John Lennon"
},{
"field_name":"e-mail",
"value":"[email protected]"
},{
"field_name":"Message",
"value":"Hello goodbye"
}
]
確實存在一些tecnique?
非常感謝你! – vitto 2010-06-06 13:22:10
不客氣.. :) – 2010-06-06 19:27:42