Flash Action script3 ve Php ile Mysql veri tabanına Sql kod ile işlem yaptırma.

yapi.php
<?php
$baglanti=mysql_connect("localhost","root","") or die("HATA");
mysql_select_db("odev4",$baglanti) or die("HATA");

$yapim = $_POST['vt'];


mysql_query($yapim) or die("HATA");
echo "Bilgileriniz veritabanına başarıyla kaydedildi !";
mysql_close();
?>

Action Script 3 kodları:
import flash.events.MouseEvent;
stop();
var ekleyol:String = "https://localhost/yapi.php";
rr.addEventListener(MouseEvent.CLICK,te);
function te(event:MouseEvent):void
{
   var adres2:URLRequest = new URLRequest(ekleyol);
	var veriler2:URLVariables = new URLVariables();
    veriler2.yyy = yapim.text;
	
	adres2.method = URLRequestMethod.POST;
	adres2.data = veriler2;
	sendToURL(adres2);
	
}

Üye Ol veya Giriş Yap

Bu forum başlığına mesaj atmak istiyorsanız hemen üye olun veya giriş yapın.