[請益] flash與php間變數的問題
我在flash內傳了一個變數Product="HDC"給xml.php
------------------------------------------------------
mySendVars.Product="HDC";
mySendVars.sendAndLoad("http://localhost/xml.php",
myReciVars, "POST");
------------------------------------------------------
在php內抓flash傳來的變數值給 $prefer,
並且下了sql指令
------------------------------------------------------
$prefer = $_POST['Product'];
$query = "select * from customer where prefer ='" .$prefer . "'";
echo "&prefer="."$query";
=============================================
此時我可以在flash內 show出 &prefer 的值
--> select * from customer where prefer ='HDC'
但在網頁上echo出來的字串卻是
--> &prefer=select * from customer where prefer =''
想請問的是為什麼網頁上echo出來的where條件是空的??
既然回傳正確的值給flash 應該表示我有正確傳值給變數阿!!
麻煩知道的高手 教教我~~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.165.15.85
※ 編輯: ransonasd 來自: 118.165.15.85 (08/09 15:27)
→
08/09 16:04, , 1F
08/09 16:04, 1F
→
08/09 16:29, , 2F
08/09 16:29, 2F
→ ransonasd :我在flash內用sendAndLoad接收傳回來的$
prefer 08/09 16:34
※ 編輯: ransonasd 來自: 118.165.15.85 (08/09 16:34)
→
08/09 16:42, , 3F
08/09 16:42, 3F
推
08/09 17:12, , 4F
08/09 17:12, 4F
→
08/09 17:13, , 5F
08/09 17:13, 5F
→
08/09 17:14, , 6F
08/09 17:14, 6F
討論串 (同標題文章)
完整討論串 (本文為第 1 之 3 篇):
PHP 近期熱門文章
PTT數位生活區 即時熱門文章