Merhaba,
getembed kodunda biraz değişiklik yapalım ve bir php sayfasına GET methodu ile sorgu çeksin ve dönen değeri "Buraya" yazdığınız değere eşleyelim.
function getembed(){
$ks1 = $("#radisnosu").val();
$kses = $("#ses").val();
$.get('PHPSAYFA.php',{'radisnosu':$ks1},function(data) {
$godualla = '<div style="background-color:#000;color:#19d38f;width:300px;height:126px;"><iframe src="http://www.site.com/video/' + $ks1 + '.php' + $kses + '" frameborder="0" scrolling="no" width="319" height="147"></iframe><p align="center"><a href="http://' + $ks1 + '.site.com" style="color:#19d38f">'+data+'</a></p></div>';
$("#godumuz").html($godualla);
$("#godgorundu").html($godualla);
});
}Kolay gelsin.
Merhaba bir kodum var select ile ajax olayı
<select name="radisnosu" onchange="getembed()" id="radisnosu" style="border:1px solid #999999;">
<option value="başlığım">Başlık</option>
<script>
function getembed(){
$ks1 = $("#radisnosu").val();
$kses = $("#ses").val();
$godualla = '<div style="background-color:#000;color:#19d38f;width:300px;height:126px;"><iframe src="http://www.site.com/video/' + $ks1 + '.php' + $kses + '" frameborder="0" scrolling="no" width="319" height="147"></iframe><p align="center"><a href="http://' + $ks1 + '.site.com" style="color:#19d38f">Buraya</a></p></div>';
$("#godumuz").html($godualla);
$("#godgorundu").html($godualla);
}
</script>Şimdi "buraya" yazdığım yere
radisnosu ile gelen veriyi basmak istiyorum nasıl yapabilirim?
Sonrasında ise veriyi aldığımızı farzedersek değişkenlere atadığım veriyi birleştirip basmak.
<?php
$video = $_GET['radisnosu'];
$video1 = 'a';
$birlestir = $video.$video1;
?>
<?=$birlestir ?>
Bu şekilde çalıştırmak istiyorum, anlatabilmişimdir umarım şimdiden teşekkürler.