2006/6/26 学籍番号 名前 |
Flash側 | PHP側 send_load_test.php | ||||||
System.useCodepage = true; sendV = new LoadVars(); loadV = new LoadVars(); send_mc.onPress = function(){ sendV.name = name_txt.text; sendV.msg = msg_txt.text; sendV.sendAndLoad("send_load_test.php",loadV); loadV.onLoad = recieveFunction; } function recieveFunction(success) { if(success) { name2_txt.text = loadV.n; msg2_txt.text = loadV.m; } else { msg2_txt.text = "読み込みエラー"; } } |
→→ ←← |
<?php $name=$_POST['name']; $msg=$_POST['msg']; print "n=".$name."&m=".$msg; ?> |
|||||
name_txt
name2_txt
|